@elevatormedia/paymigo
TypeScript icon, indicating that this package has built-in type declarations

0.1.5-alpha.7 • Public • Published

paymigo

TypeScript wrapper and extension of PayPal's Node.js Checkout SDK.

Purpose

PayPal is one of the premiere ecommerce service providers and Node.js has only been rising in popularity. However, PayPal's Checkout Node SDK lacks types and an easy-to-use API client for a better developer experience. This library serves to expose all existing funtionality of @paypal/checkout-server-sdk with an easy to use API, TS-first support with static typing for new clients as well as legacy types, and extend existing functionality to encompass more of PayPal's REST API's potential.

As of this writing, it's core implementation is built around the original client then extends functionality by providing more request options and a client that's easier to implement. In the future, we plan to rebuild to core client, but our primary focus will be providing a simple and cohesive developer experience to making using PayPal's platform easier.

Getting Started

First, install the library with your preferred package manager:

npm

npm install @elevatormedia/paymigo

yarn

yarn add @elevatormedia/paymigo

Configuration requires a valid Client ID and Secret Key recovered from your PayPal developer dashboard. We recommend adding them to your environment variables.

The Paymigo client is then created by pairing those with your environment type:

import PaymigoClient from '@elevatormedia/paymigo';

const client = new PaymigoClient({
    mode: 'sandbox',
    clientId: '<CLIENT_ID>',
    secretKey: '<SECRET_KEY>',
});

Package Sidebar

Install

npm i @elevatormedia/paymigo

Weekly Downloads

2

Version

0.1.5-alpha.7

License

MIT

Unpacked Size

96.5 kB

Total Files

119

Last publish

Collaborators

  • donald-stolz
  • dallen4