SetExpressCheckout only posts to the ReturnURL the following ACK CORRELATIONID TIMESTAMP VERSION BUILD
To complete a transaction though we must first call GetTransactionDetails with TRANSACTIONID to get the PAYERID to ultimately use with DoExpressCheckout to complete the transaction.
Where do we obtain TRANSACTIONID? I can't find information anywhere.
If I use the CORRELATIONID as TRANSACTIONID, I get 'Transaction Id is invalid'.
The sample files just have 'example_transactionId' and no indication of where it is supposed to come from.
From paypal
- Invoke an API operation, such as SetExpressCheckout, that sets up the return URL to which PayPal redirects your buyer’s browser after the buyer finishes on PayPal. Other setup also can be performed by this API operation.
- Invoke additional API operations after receiving the buyer’s permission on PayPal, for example, GetExpressCheckoutDetails or DoExpressCheckoutPayment.
Step one works because we have all the information and returns this.
Step 2 can't be completed without at least TRANSACTIONID which isn't given.
What the?