CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 CCT PayPal shop question (RESOLVED)

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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!
View profile  Send private message
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.
View profile  Send private message
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.
View profile  Send private message
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!
View profile  Send private message
Rick

Posts: 52
Posted: 08/12/2010, 8:28 AM

Great. Glad you worked it out.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.