我是 PayPal 集成的新手,我正在尝试创建第一笔付款,我通过他们的模拟器(https://devtools-paypal.com/apiexplorer/PayPalRestAPIs)向 PayPal Rest API 发送以下请求:
{
"intent": "sale",
"payer": {
"payment_method": "paypal",
"funding_instruments": [
{
"credit_card": {
"number": "5277726581534042",
"type": "mastercard",
"expire_month": "9",
"expire_year": "2018",
"links": [
{
"targetSchema": {
"readonly": "true"
},
"schema": {
"readonly": "true"
}
}
]
}
}
],
"payer_info": {
"email": "ostan.marc.buyer@gmail.com"
}
},
"transactions": [
{
"amount": {
"currency": "USD",
"total": "10"
},
"payee": {
"email": "ostan.marc-faciliator@gmail.com"
}
}
],
"redirect_urls": {
"return_url": "yandex.ru",
"cancel_url": "google.com"
},
"links": [
{
"href": "http://google.com",
"rel": "http://yandex.ru",
"targetSchema": {
"readonly": "true"
},
"schema": {
"readonly": "true"
}
}
]
}
我得到的回应是:
{
"name": "VALIDATION_ERROR",
"details": [
{
"field": "transactions",
"issue": "Only single payment transaction currently supported"
}
],
"message": "Invalid request - see details",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR",
"debug_id": "08c2dc7a41f64"
我
只是不知道如何使它工作..
PayPal 只是说我发送了 2 笔付款..
任何帮助将不胜感激