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": "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回の支払いを送信していると言っています..

どんな助けでも大歓迎です

4

1 に答える 1