1
我是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": "[email protected]"
}
},
"transactions": [
{
"amount": {
"currency": "USD",
"total": "10"
},
"payee": {
"email": "[email protected]"
}
}
],
"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"
}
}
]
}
的reasponse我得到的是:
{
"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"
}
我只是不知道如何使它工作..
貝寶只是說,IM發送2個金..
任何幫助將高度讚賞