paymaya-nodejs

0.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i paymaya-nodejs

Weekly Downloads

0

Version

0.0.5

License

UNLICENSED

Unpacked Size

17.5 kB

Total Files

18

Last publish

Collaborators

  • narodejesus