But I cannot exactly follow the documentation here What I am not getting is Once you have activated PDT, every time a buyer makes a website payment and is redirected to your return URL, a transaction token will be passed along as a "GET" variable to this return URL.
In order to properly use PDT and display transaction details to your customer, you should fetch the transaction token, variable name "tx", and retreive transaction details from Pay Pal by constructing an HTTP POST to Pay Pal. You must post the transaction token using the variable "tx" and the value of the transaction token previously received (e.g.
To learn more about how to set this up on Pay Pal, see: How to Activate IPN in your Pay Pal Account.
There can be only one IPN URL set for a Pay Pal account, so you need to use an account that is not already using an IPN for any other purpose.
*Once an ‘authorize only’ order has been changed to Processing or Completed, funds are automatically captured.
It is no longer a manual process as of Woo Commerce 3.0.
This response data needs to be parsed appropriately and then Web decoded.It is used in combination with Website Payments Standard, so that after a customer returns to your website after paying on the Pay Pal site, they can instantly view a confirmation message with the details of the transaction.— Pay Pal I’ve tried to figure out how to use PDT and found that most samples and classes to build from are usually quite ugly, old or outdated. So, therefore, I’ve tried to do my own thing based on the documentation found on the Pay Pal Developer websites.Once you have activated PDT, every time a buyer makes a website payment and is redirected to your return URL, a transaction token will be passed along as a "GET" variable to this return URL.Pay Pal will respond to the post with a single word, SUCCESS or FAIL, on one line in the body of the response.This is basically logging into your paypal account and enable IPN while specifying a url where the notification will be sent. The first thing I want to trouble shoot though is when the buyer pays the amount, he is automatically redirected to my site.