0.0.5 • Published 5 years ago

paymaya-nodejs v0.0.5

Weekly downloads
6
License
UNLICENSED
Repository
github
Last release
5 years ago

paymaya-nodejs

This is a unofficial paymaya node sdk that allows existing nodejs app to accept payments using the existing paymaya endpoints which supports (MasterCard and Visa enabled card (credit, debit, or prepaid). this repo currently contains Paymaya vault endpoints )

Installation

npm install paymaya-nodejs

Sample Usage

using ES6
import paymayaNode from 'paymaya-nodejs';

const secretKey = "YOUR_SECRET_API_KEY";
const publicKey = "YOUR_PUBLIC_API_KEY";

const paymaya = new paymayaNode({ secretKey, publicKey, isSandbox: true });

// To create payment token
const result = await paymaya.createCustomer({
      "card": {
            "number": "5123456789012346",
            "expMonth": "05",
            "expYear": "2025",
            "cvc": "111"
      }
})

TODO

  1. Webhooks and subscription.

License

MIT

Release History

1.0.0 -> WIP

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago