javascript - QuickPay node.js REST api -


has worked on worked on quickpay rest api, went through internet find useful resource not enough. tested on postman , worked

var _ = require('underscore'); var quickpay = require('quick-pay');  var version = {     "accept-version": "v10",     "authorization": "your basic authentication"};   var transaction_id ={};  function processcreatepayment(req, res, next) {     var random_order_id = _.random(1000, 99999999999999999999);      var parameters = {         "currency": "inr",         "order_id": random_order_id      };     quickpay.post("payments/", version, parameters)         .then(function(result) {             console.log(result);             res.send(result);             transaction_id = result.id;             console.log(transaction_id);         })         .catch(function(err) {              console.log(err.response);             res.send(err.response);          }); } 

use put method amount payment


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -