# @elevatormedia/paymigo

> TypeScript wrapper and extension of PayPal Node.js SDK and REST APIs

Latest version **0.1.5-alpha.7** (published 2021-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @elevatormedia/paymigo
pnpm add @elevatormedia/paymigo
yarn add @elevatormedia/paymigo
bun add @elevatormedia/paymigo
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5-alpha.7 |
| Published | 2021-10-29 |
| First published | 2021-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 94.2 KB |
| Known vulnerabilities | 0 (+24 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nieky Allen |
| Maintainers | donald-stolz, dallen4 |
| Keywords | paypal, payments, ecommerce |

## Links

- npm: https://www.npmjs.com/package/@elevatormedia/paymigo
- Repository: https://github.com/ELEVATORmedia/paymigo
- Homepage: https://github.com/ELEVATORmedia/paymigo#readme
- Issues: https://github.com/ELEVATORmedia/paymigo/issues
- npm.io page: https://npm.io/package/@elevatormedia/paymigo

## Dependencies (4)

- [qs](https://npm.io/package/qs.md) ^6.10.1
- [axios](https://npm.io/package/axios.md) ^0.23.0
- [xml2js](https://npm.io/package/xml2js.md) ^0.4.23
- [@paypal/checkout-server-sdk](https://npm.io/package/@paypal/checkout-server-sdk.md) ^1.0.3

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.5-alpha.7 (latest) — 2021-10-29
- 0.1.5-alpha.6 — 2021-10-28
- 0.1.5-alpha.5 — 2021-10-26
- 0.1.5-alpha.4 — 2021-10-26
- 0.1.5-alpha.3 — 2021-10-22
- 0.1.5-alpha.2 — 2021-10-22
- 0.1.5-alpha.1 — 2021-10-22
- 0.1.5-alpha — 2021-10-21
- 0.1.5 — 2021-10-21
- 0.1.4 — 2021-10-19
- 0.1.3 — 2021-10-19

## README

# paymigo

TypeScript wrapper and extension of [PayPal's Node.js Checkout SDK](https://github.com/paypal/Checkout-NodeJS-SDK#readme).

## 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](https://github.com/paypal/Checkout-NodeJS-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

```bash
npm install @elevatormedia/paymigo
```

### yarn

```bash
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:

```ts
import PaymigoClient from '@elevatormedia/paymigo';

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

---
_Source: https://npm.io/package/@elevatormedia/paymigo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
