Is there any way to get transaction data from PayPal on the return page for php?

  • I use the PayPal sandbox to verify PayPal payment. Upon successful payment of the bill, he returns to the success page. But I do not get any transaction data on the return page. Can anyone suggest any way to resolve this?
  • Is there any way to get Transaction data from PayPal return page as POST?
+5
source share
1 answer

If you use the standard PayPal Standard buttons, you can use the "Transfer billing information" . Just provide the return URL in the return parameter, and the PDT will return the transaction information. You also need to enable automatic return to your PayPal account.

If you use express verification, after completing Doexpresscheckout you will receive all the necessary information, including transaction information, in response. alternatively, call the GetTransactionDetails API to get transaction information.

In addition, if not on the return page, you can always use IPN to get transaction details that are asynchronous. This is really the recommended way to process any transaction after a transaction that you may need, as it will allow you to correctly process pending payments that may not be cleared for several days.

+2
source

Source: https://habr.com/ru/post/1211683/


All Articles