В настоящее время я пытаюсь создать запрос API для PayPal в моем приложении, следуя этому руководству. нажмите здесь Мне удалось получить ответ на моей платежной консоли.но когда я проверил свой аккаунт, платеж не прошел, когда я проверил свой ответ, я обнаружил это.
"payment_mode":"INSTANT_TRANSFER",
"protection_eligibility":"ELIGIBLE",
"protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE"
это немного отличается от учебника, который
"payment_mode":"INSTANT_TRANSFER",
"protection_eligibility":"INELIGIBLE",
это полный ответ после выполнения платежа
{"id":"PAYID-LRNIGFA217415623UJ3635011","intent":"sale","state":"approved","cart":"5Y970287GN804610K","payer":{"payment_method":"paypal","status":"VERIFIED","payer_info":{"email":"myEmailPerson@gmail.com","first_name":"Test","last_name":"Test","payer_id":"YDN25123AIHA","shipping_address":{"recipient_name":"TEST Test","line1":"1 Main St","city":"San Jose","state":"CA","postal_code":"95131","country_code":"US"},"country_code":"US"}},"transactions":[{"amount":{"total":"50.00","currency":"USD","details":{}},"payee":{"merchant_id":"3529WHTFJH9X8","email":"myMerchant@gmail.com"},"description":"This is the payment description.","item_list":{"items":[{"name":"Hat Hat Hat","sku":"item","price":"50.00","currency":"USD","quantity":1}],"shipping_address":{"recipient_name":"TEST Test","line1":"1 Main St","city":"San Jose","state":"CA","postal_code":"95131","country_code":"US"}},"related_resources":[{"sale":{"id":"0KP91030HKJH1194D","state":"completed","amount":{"total":"50.00","currency":"USD","details":{"subtotal":"50.00"}},"payment_mode":"INSTANT_TRANSFER","protection_eligibility":"ELIGIBLE","protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","transaction_fee":{"value":"1.75","currency":"USD"},"parent_payment":"PAYID-LRNIGFA2V765427UJ3635011","create_time":"2019-02-06T06:48:05Z","update_time":"2019-02-06T06:48:05Z","links":[{"href":"https://api.sandbox.paypal.com/v1/payments/sale/0KP91030TA833354D","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/payments/sale/0KP91030TA833354D/refund","rel":"refund","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LRNIGFA217415623UJ3635011","rel":"parent_payment","method":"GET"}]}}]}],"create_time":"2019-02-06T07:16:11Z","links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAYID-LRNIGFA2V765427UJ3635011","rel":"self","method":"GET"}],"httpStatusCode":200}