1
錯誤看起來是這樣的Venmo API返回記錄的錯誤1396付款端點
request.post({
url: 'https://api.venmo.com/v1/payments',
form: {
access_token: 'xxxxxxxxxxxxxxxxxxxxxx',
email: req.body.email,
note: 'Payment of ' + req.user.coins + ' coins',
amount: (req.user.coins * coin_price),
audience: 'public',
confirm: true
}
}, function(err, httpResponse, body) {
console.log(err, body)
})
和JSON響應看起來像這樣
{"error": {"message": "Please confirm whether you would like to pay a fee on this transaction", "code": 1396}}
我覺得這是因爲我的帳戶我有一個信用卡,需要支付3%的費用。但我對它很好。有沒有一種方法可以自動接受此問題?
的文檔是在這裏:Venmo payments