We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var amount = document.getElementById('amount').value * 100; var xhr = new XMLHttpRequest(); xhr.open("POST", "http://localhost:3000/api/pay", true); xhr.setRequestHeader("Content-type", "application/json"); xhr.send(JSON.stringify({ channel: channel, amount: amount, subject: 'audi A6', desc: 'link to the car page for desc' })); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { console.log(xhr.responseText); pingpp.createPayment(xhr.responseText, function(result, err) { console.log(result); console.log(err); }); } } }
{"err":null,"charge":{"id":"ch_vD4az5bXXXf5nv9y9G1G080K","object":"charge","created":1448276047,"livemode":false,"paid":false,"refunded":false,"app":"app_KO8CGC8KWzL8qTW5","channel":"upacp_wap","order_no":"6bb29e38f8b6385c5fde9f7154ba25971e1e8f14","client_ip":"127.0.0.1","amount":100000,"amount_settle":0,"currency":"cny","subject":"audi A6","body":"link to the car page for desc","extra":{"result_url":"https://mcw.avosapps.com/result"},"time_paid":null,"time_expire":1448279647,"time_settle":null,"transaction_no":null,"refunds":{"object":"list","url":"/v1/charges/ch_vD4az5bXXXf5nv9y9G1G080K/refunds","has_more":false,"data":[]},"amount_refunded":0,"failure_code":null,"failure_msg":null,"metadata":{},"credential":{"object":"credential","upacp_wap":{"version":"5.0.0","encoding":"UTF-8","certId":"164284609791532637515646828757023519875","signMethod":"01","txnType":"01","txnSubType":"01","bizType":"000000","channelType":"08","backUrl":"https://api.pingxx.com/notify/charges/ch_vD4az5bXXXf5nv9y9G1G080K","accessType":"0","merId":"259397895241124","orderId":"6bb29e38f8b6385c5fde9f7154ba25971e1e8f14","txnTime":"20151123185407","txnAmt":100000,"currencyCode":"156","customerIp":"127.0.0.1","orderDesc":"audi A6","reqReserved":"ch_vD4az5bXXXf5nv9y9G1G080K","payTimeout":"20151123195407","frontUrl":"https://mcw.avosapps.com/result","signature":"NjE1ODU1NjIwMDU1NTE2MTg1MjY5NjA2ODI4NTY5NzMwNzQ2MjExNDg1ODUzNzk3NDMzMDcyMzYyMTA2ODE0Mw=="}},"description":null}} pay.html:52 fail
extra: "no_charge_id" msg: "invalid_charge" proto: Object
The text was updated successfully, but these errors were encountered:
No branches or pull requests
{"err":null,"charge":{"id":"ch_vD4az5bXXXf5nv9y9G1G080K","object":"charge","created":1448276047,"livemode":false,"paid":false,"refunded":false,"app":"app_KO8CGC8KWzL8qTW5","channel":"upacp_wap","order_no":"6bb29e38f8b6385c5fde9f7154ba25971e1e8f14","client_ip":"127.0.0.1","amount":100000,"amount_settle":0,"currency":"cny","subject":"audi A6","body":"link to the car page for desc","extra":{"result_url":"https://mcw.avosapps.com/result"},"time_paid":null,"time_expire":1448279647,"time_settle":null,"transaction_no":null,"refunds":{"object":"list","url":"/v1/charges/ch_vD4az5bXXXf5nv9y9G1G080K/refunds","has_more":false,"data":[]},"amount_refunded":0,"failure_code":null,"failure_msg":null,"metadata":{},"credential":{"object":"credential","upacp_wap":{"version":"5.0.0","encoding":"UTF-8","certId":"164284609791532637515646828757023519875","signMethod":"01","txnType":"01","txnSubType":"01","bizType":"000000","channelType":"08","backUrl":"https://api.pingxx.com/notify/charges/ch_vD4az5bXXXf5nv9y9G1G080K","accessType":"0","merId":"259397895241124","orderId":"6bb29e38f8b6385c5fde9f7154ba25971e1e8f14","txnTime":"20151123185407","txnAmt":100000,"currencyCode":"156","customerIp":"127.0.0.1","orderDesc":"audi A6","reqReserved":"ch_vD4az5bXXXf5nv9y9G1G080K","payTimeout":"20151123195407","frontUrl":"https://mcw.avosapps.com/result","signature":"NjE1ODU1NjIwMDU1NTE2MTg1MjY5NjA2ODI4NTY5NzMwNzQ2MjExNDg1ODUzNzk3NDMzMDcyMzYyMTA2ODE0Mw=="}},"description":null}}
pay.html:52 fail
extra: "no_charge_id"
msg: "invalid_charge"
proto: Object
The text was updated successfully, but these errors were encountered: