我创建了一个paypal商业帐户,我希望使用paypal v.zero库来保证信用卡接受付款。我已经使用沙盒帐户测试了所有内容,但使用我的paypal企业帐户无效。我一直收到以下错误
{
"creditCardVerification": null,
"transaction": null,
"subscription": null,
"errors":{
"allDeepValidationErrors":[
{"attribute": "payment_method_token", "code": "TRANSACTION_PAYMENT_METHOD_TOKEN_CARD_TYPE_IS_NOT_ACCEPTED", "message": "Payment instrument type is not accepted by this merchant account."…},
{"attribute": "merchant_account_id", "code": "TRANSACTION_PAYMENT_INSTRUMENT_NOT_SUPPORTED_BY_MERCHANT_ACCOUNT", "message": "Merchant account does not support payment instrument."…}
],
"allValidationErrors":[]
},
"parameters":{
"transaction[type]": "sale",
"transaction[payment_method_token]": "xxxxxx",
"transaction[amount]": "1"
},
"message": "Payment instrument type is not accepted by this merchant account.\nMerchant account does not support payment instrument.",
"target": null,
"success": false
}
答案 0 :(得分:1)
"transaction[amount]": "1"
中的错误,您已通过金额传递货币
使用"transaction[amount]": {"value":"1.0", "currency":"USD"}