I get below response when paying with PayPal using a card using credentials for the sandbox.
{ "client": { "environment": "sandbox", "paypal_sdk_version": "2.14.6", "platform": "Android", "product_name": "PayPal-Android-SDK" }, "response": { "create_time": "2017-01-31T08:12:40Z", "id": "PAY-*************", "intent": "sale", "state": "created" }, "response_type": "payment" }
Then I tried to get the full information using the payment identifier, using the API call to access, and get the status "DEAD" in the response to the payment. Please check below answer
{ "id": "PAY-*************", "create_time": "2017-01-31T08:12:40Z", "update_time": "2017-01-31T08:13:22Z", "state": "DEAD", "intent": "sale", "payer": { "payment_method": "credit_card", "funding_instruments": [ { "credit_card": { "type": "visa", "number": "xxxxxxxxxxxx1111", "expire_month": "11", "expire_year": "2025" } } ] }, "transactions": [ { "amount": { "total": "2.00", "currency": "USD", "details": { "subtotal": "2.00" } }, "description": "New Product", "related_resources": [] } ], "links": [ { "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-*************", "rel": "self", "method": "GET" } ] }
Can someone help me understand why I get this? How to fix it?