Payture API for NodeJS. To get started with Payture, you will need an account, please contact Payture directly. Please also note that this module was not developed by Payture.
- Payture Host
- Merchant Account(s)
- Payture Password
npm
npm install -save payture
var Payture = require('payture')
var api = new Payture(PAYTURE_HOST)
api.wallet.init(MERCHANT, data, callback) // Init
api.wallet.pay(MERCHANT, data, callback) // Pay
api.wallet.users.check(MERCHANT, data, callback) // Check
api.wallet.users.register(MERCHANT, data, callback) // Register
api.wallet.users.delete(MERCHANT, data, callback) // Delete
❗ For delete you need to provide the Payture password, NOT the user password (or token).
api.wallet.cards.getList(MERCHANT, data, callback) // GetList
api.wallet.paySubmit3ds(MERCHANT, data, callback) // PaySubmit3DS
To test the Payture API run the command npm test
. Make sure you set the following Environment variables:
- PAYTURE_HOST
- PAYTURE_ADD
- PAYTURE_PAY
- PAYTURE_PASSWORD