Reputation: 1
I am using PayPal's PDT and IPN prototcols to create an interactive shopping cart. Everything works really well.
The only glitch I am running into is that some customers do not wait for the PayPal page to return back to my website and terminate the window. This prevents me from acquiring the transaction key so I can then query the IPN and get all the purchase information back.
Does anyone know a way around this?
Upvotes: 0
Views: 109
Reputation: 231
You should just be able to save the return data from the IPN response, which happens after the customer has pressed buy.
Pass the posted variable to local variables then save to database. For example $txn_id = $_GET["txn_id"];
Upvotes: 2