payum-client
v0.0.3
Published
The Node.js client for a payment processing micro service: PayumServer. Supports next payment gateways: Paypal ExpressCheckout, Paypal ProCheckout, Paypal Rest, Stripe.Js, Stripe Checkout, Stripe Direct, Authorize.NET AIM, Be2Bill, Payex, Klarna Checkout,
Downloads
5
Readme
PayumClientNodeJs
The Node.js client for a payment processing micro service: PayumServer
var payumServerUri = 'http://localhost';
var payum = require('payum-client')(payumServerUri);
payum.payment.create({totalAmount: 100, currencyCode: 'USD'}, function(err, payment) {
if (!err) {
payum.token.create({type: 'capture', paymentId: payment.id, afterUrl: 'http://google.com'}, function(err, token) {
// redirect user to this url token.targetUrl or you can pass this url to the browser and use payum.js to do everything on your page.
});
}
});