我正在使用 Angular 和后端 nodejs、express 和 mongodb 开发完全宁静的前端 Web 应用程序。我正在尝试将 payumoney 支付网关与我的网络应用程序集成。请通过此https://www.payumoney.com/developer-doc-api.html api 在我点击付款端点https://test.payu.in/_payment时返回 html 页面。我不知道如何让用户重定向到 payumoney 支付页面。在这一切之前,我收到错误校验和失败。我以这种格式发送数据
request.post({
url: 'https://test.payu.in/_payment',
headers: {
Authorization:'4sOSsCZXIopj4XvbddLX8kF7tmlTu2UZsjHVAwPt404='
},
form: {
key: 'lfX7uR',
txnid: 578cb861e9c38ecc185ec8e7,
firstname: 'Rayees',
lastname: 'Mir',
email: 'rayees@mir.com',
phone: '9797187225',
productinfo: '{"_id":"57611c58763eb9c0116d6def","expiryDate":"2016-09-15T09:14:00.536Z","amount":8600,"updated":"2016-06-22T13:55:43.176Z","user":"5757c59e3d47bd50118e07c7","__v":27,"status":"active","created":"2016-06-15T09:14:00.533Z","products":[{"_id":"575a9257685404601d1da5c0","quantity":3,"salesPrice":200,"addedDate":"2016-06-15T15:29:29.525Z","listPrice":50},{"_id":"575a9286ee1ca30c27abb9eb","quantity":20,"salesPrice":400,"addedDate":"2016-06-22T13:55:43.176Z","listPrice":210}]}',
amount: 8200,
surl: 'https://www.google.com',
furl: 'https://www.facebook.com',
hash: '',
service_provider: '',
address1: '',
address2: '',
city: '',
state: '',
country: '',
zipcode: '',
udf1: '',
udf2: '',
udf3: '',
udf4: '',
udf5: '',
udf6: '',
udf7: '',
udf8: '',
udf9: '',
udf10: '' }
},function(result){
console.log(result);
});