1.0.2 • Published 7 years ago

amplify-pay v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Amplify

Nodejs API wrapper for Amplify.

Installation

npm install amplify-pay

Usage

// Require the library
var Amplify = require('amplify-pay')

var amplify = new Amplify('merchantId', 'apikey')

amplify.subscription.create({
  planName: 'Hey',
  frequency: 'weekly'
}, function (body, error) {
  console.log(body);
})

Using the library

The resource accepts callback as the last argument.

amplify.subscription.create({
  planName: 'Hey',
  frequency: 'weekly'
}, function (body, error) {
  console.log(body);
})
//parameter for chargeReturning
{
  transactionRef : "12345",
  authCode: "567890 A",
  Amount: "100.0000",
  paymentDescription: "Charge return customer",
  customerEmail: "test@tester.com"
}

Resources

  • customer
    • chargeReturning
  • transaction
    • verify
  • subscription
    • create
    • delete
    • update
    • fetch

Contributing

If you are contributing to the repository, kindly update the necessary files and test file in /tests. ensure all tests are passed before sending a PR.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago