payture
v1.2.1
Published
Payture API for NodeJS
Maintainers
Readme
Payture.com API for NodeJS
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.
Getting Started
What you need
- Payture Host
- Merchant Account(s)
Install
npm
npm install -save paytureInitialize
var Payture = require('payture')
var api = new Payture(PAYTURE_HOST)Payture eWallet
api.wallet.init(MERCHANT, data, callback) // Initapi.wallet.pay(MERCHANT, data, callback) // PayUser Management
api.wallet.users.check(MERCHANT, data, callback) // Checkapi.wallet.users.register(MERCHANT, data, callback) // Registerapi.wallet.users.delete(MERCHANT, data, callback) // Delete:exclamation: For delete you need to provide the Payture password, NOT the user password (or token).
Card Management
api.wallet.cards.getList(MERCHANT, data, callback) // GetList3DSecure
api.wallet.paySubmit3ds(MERCHANT, data, callback) // PaySubmit3DSTesting
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
