IPN returns a different transaction id [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
开发者_运维百科 Improve this questionI have an error with Paypal: IPN gives me a different transaction id from the one shown in PayPal page (displayed PayPal you finish the payment, like in the attached image).
In my IPN file I take the transaction id from $_POST['txn_id']
. Now I'm using the sandbox.
Is this my problem?
PayPal has a different transaction ID for the buyer and seller of a payment. If you compare the transaction ID in the IPN with the transaction ID with the seller's side, you'll find they are the same.
If a buyer calls in with his transaction ID and you want to automatically look up the matching PayPal transaction, use the GetTransactionDetails API.
精彩评论