saseow
Posts: 744
|
| Posted: 08/12/2010, 12:45 AM |
|
I need to get the ID or name of the item that the user has purchased when he returns from making the payment at PayPal. The item name is passed to paypal but I don't think that I can catch it on the orders page. Maybe I am wrong.
I would think that this would have to be in the thanks page because when he clicks the Pay Now button on the products table it goes straight to PayPal's site.
Any help would very much appreciated.
Thanks,
Trevor
|
 |
 |
Rick
Posts: 52
|
| Posted: 08/12/2010, 4:56 AM |
|
If I understand what you are asking you want to put more info on the thanks page presented to the user after the purchase?
If so, you might try to add a page attribute or template variable, create a page After Initialize event (or modify the existing one but that would break the grayed out code), and capture that array value returned by the PayPal transaction in the event code.
Something along the above lines may work
|
 |
 |
saseow
Posts: 744
|
| Posted: 08/12/2010, 5:15 AM |
|
Thanks for the reply Rick!
I do not want to present it to the user but I do hope to get either the product description or the ID from PayPal and hope to capture that.
I need to add the specific product that the user buys to a database table so I need some info on what he bought.
I can get away with getting just the product description as it will be unique so I am hoping that PayPal returns that as they certainly get it.
Perhaps you can let me know how to capture the array returned by PayPal. I am not familiar with $GET and $POST stuff. If the array does contain the description it would be wonderful!
Thanks again Rick!
|
 |
 |
Rick
Posts: 52
|
| Posted: 08/12/2010, 6:15 AM |
|
Take a look at the code in the thanks events as that is building tables and collecting the data from the returned PayPal array of data.
|
 |
 |
saseow
Posts: 744
|
| Posted: 08/12/2010, 6:42 AM |
|
Thanks Rick, That I will do and will post my results here.
Appreciate your help.
|
 |
 |
saseow
Posts: 744
|
| Posted: 08/12/2010, 7:27 AM |
|
Rick, I got it. They return the actual product ID which is great.
Thank you for pointing me in the right direction!
|
 |
 |
Rick
Posts: 52
|
| Posted: 08/12/2010, 8:28 AM |
|
Great. Glad you worked it out.
|
 |
 |