I want to track the transaction id after completing a transaction, but the result returning from the API does not include the expected transaction id. Please look at the screenshot below to see my expected transaction id from Payer/Buyer view. I googled and tried with this API but no luck the sale id is not my expectation Request: https://api.sandbox.paypal.com/v1/payments/payment/PAYID-L37PB5I38U99292GC7810347 Response: {
"id": "PAYID-L37PB5I38U99292GC7810347",
"intent": "sale",
"payer": {
"payment_method": "paypal",
"status": "VERIFIED",
"payer_info": {
"email": "xxxxx",
"first_name": "AUS",
"last_name": "Test",
"payer_id": "CNKMF2FXWWEPY",
"phone": "084932091707",
"country_code": "AU",
"shipping_address": {
"line1": "xxxxxxxxxx",
"city": "xxxxxxxxxx",
"state": "xxxxxxxxxx",
"postal_code": "xxxxxxxxxx",
"country_code": "xxxxxxxxxx",
"recipient_name": "xxxxxxxxxx"
}
}
},
"cart": "9WB55052CM143354T",
"transactions": [
{
"amount": {
"currency": "AUD",
"total": "9.60",
"details": {
"subtotal": "9.60",
"shipping": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00",
"insurance": "0.00"
}
},
"payee": {
"email": "xxxxxxxxxx",
"merchant_id": "YDYL6WBW7ZR8G"
},
"item_list": {
"shipping_address": {
"line1": "xxxxxxxxxx",
"city": "xxxxxxxxxx",
"state": "xxxxxxxxxx",
"postal_code": "xxxxxxxxxx",
"country_code": "xxxxxxxxxx",
"recipient_name": "xxxxxxxxxx"
}
},
"related_resources": [
{
"sale": {
"id": "4LG37143WW764552S",
"amount": {
"currency": "AUD",
"total": "9.60",
"details": {
"subtotal": "9.60",
"shipping": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00",
"insurance": "0.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"state": "completed",
"protection_eligibility": "ELIGIBLE",
"protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
"transaction_fee": {
"currency": "AUD",
"value": "0.67"
},
"parent_payment": "PAYID-L37PB5I38U99292GC7810347",
"create_time": "2020-07-03T08:49:17Z",
"update_time": "2020-07-03T08:49:17Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/sale/4LG37143WW764552S",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/sale/4LG37143WW764552S/refund",
"rel": "refund",
"method": "POST"
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAYID-L37PB5I38U99292GC7810347",
"rel": "parent_payment",
"method": "GET"
}
]
}
}
]
}
],
"state": "approved",
"create_time": "2020-07-03T08:48:53Z",
"update_time": "2020-07-03T08:49:17Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAYID-L37PB5I38U99292GC7810347",
"rel": "self",
"method": "GET"
}
]
} Please help me on this thanks!
... View more