Thank you for your reply, but I still don't understand... I am going to give you the details, you tell me where things went wrong please. I call Paypal: https://www.paypal.com/sdk/js?client-id=<my_client_id>¤cy=USD&intent=capture&enable-funding=venmo The website displays Paypal GUI, after the User makes the payment, the website recieved a JSON response: { "id": "8N330975DN102892E", "intent": "CAPTURE", "status": "COMPLETED", "purchase_units": [ { "reference_id": "default", "amount": { "currency_code": "USD", "value": "69.00" }, "payee": { "email_address": "merchant_email", "merchant_id": "YMTQYPWYKZ92S" }, "shipping": { "name": { "full_name": "Loop Customer" }, "address": { "address_line_1": "1 Main St", "admin_area_2": "San Jose", "admin_area_1": "CA", "postal_code": "95131", "country_code": "US" } }, "payments": { "captures": [ { "id": "1EX23284TH533935C", "status": "COMPLETED", "amount": { "currency_code": "USD", "value": "69.00" }, "final_capture": true, "seller_protection": { "status": "ELIGIBLE", "dispute_categories": [ "ITEM_NOT_RECEIVED", "UNAUTHORIZED_TRANSACTION" ] }, "create_time": "2022-10-10T14:28:47Z", "update_time": "2022-10-10T14:28:47Z" } ] } } ], "payer": { "name": { "given_name": "Loop", "surname": "Customer" }, "email_address": "user_email", "payer_id": "6PVUDTX7YB8D8", "address": { "country_code": "US" } }, "create_time": "2022-10-10T14:28:29Z", "update_time": "2022-10-10T14:28:47Z", "links": [ { "href": "https://api.sandbox.paypal.com/v2/checkout/orders/8N330975DN102892E", "rel": "self", "method": "GET" } ] } In this JSON response, we see: the first line says: "id": "8N330975DN102892E" <ID1> in the Payment section, it says: "id": "1EX23284TH533935C" <ID2> If you go to User's account, it says:[Removed. Phone #s not permitted]> If you go to merchant's account, it says: Transaction ID: "1EX23284TH533935C" <ID4> So there are 3 unique IDs in 4 places. As a merchat, I should capture the <ID2> from the JSON content in the User's database, because it matches with merchat's Paypal's <ID4>, correct? If so, what is <ID1>? What's the purpose of <ID1>? how is it related to <ID2>? Should I capture it for any reason? And what is "href": "https://api.sandbox.paypal.com/v2/checkout/orders/8N330975DN102892E"? Any action on merchat's side? If I paste this in a browser, I got: {"name":"AUTHENTICATION_FAILURE","message":"Authentication failed due to invalid authentication credentials or a missing Authorization header.","links":[{"href":"https://developer.paypal.com/docs/api/overview/#error","rel":"information_link"}]} So what is it? What's the purpose of <ID3>? how is it related to <ID4>? Since I (as a merchant) can't see <ID3>, I should NOT care, correct? Please answer all questions, I appreciate your help.
... View more