CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 CCT PayPal Shop hassle (RESOLVED)

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 08/08/2010, 8:23 PM

I am at my wits end with this:

I have created a form using CCT PayPal shop. When returning to the thanks.php page I always get an error: FAILED to verify PDT request.

It appears that the transaction goes through just fine but for this error.

Any help would be great and thank you!

b.t.w., emails requesting help from CCT are never answered.
View profile  Send private message
saseow

Posts: 744
Posted: 08/09/2010, 8:59 AM

Not getting any error now but no verification either. I have posted on the Jobs Available forum as well.

Need PayPal IPN verify page in PHP.

I have a set of pages that gets products from a MySQL table and submits this to PayPal for payment.

I need a script called thanks.php that checks the PayPal IPN information and displays whether the payment is successful or not.

I will provide the table sql and the set of pages created using CCT PayPal shop.

Please pm me if you are interested and how much you will charge.
View profile  Send private message
Rick

Posts: 52
Posted: 08/09/2010, 10:52 AM

Some info and questions are below that may help you shed some light on your problem.

CCT automatically creates the thanks.php page so it should work if you go thru the steps?

Have you done something like the following?

1. You first go to PayPal and set up your merchant test and/or real PayPal merchant account.
2. Then you obtain an IPN token from one of the PayPal merchant setup screens.
3. Then you use the IPN token number that you get from the PayPal merchant account to put into the CCT PayPal CCS PayPal processing page.
4. CCT puts that token into the thanks.php page so when PayPal returns to that page the two match up. Look for something like:
" $request = "cmd=_notify-synch&tx=" . CCGetFromGet("tx") . "&at=fi6I-EwHZjZjgiahj7Izyl84tkgRwkipNNeJmDQfC0jBrqAceKkPUlAsVdfC";
}"
in your thanks.events.php page.

Also, did you look at your tables to see if the PayPal purchase added/modified the order, order item, and buyer tables. If records were added or modified for these tables it would show the transaction registered so it was working except for some notification.

Did you move all the appropriate CCT files to the server?

Also, in case you did not think of this, keep in mind you have to test from the Web server. PayPal cannot get to your local host server run from your local PC?

Are you sure you have the PayPal merchant account set up properly? I believe it asks you for the name of the IPN page, return page, etc.

Hope this helps in some way.
View profile  Send private message
saseow

Posts: 744
Posted: 08/09/2010, 1:10 PM

Hi Rick,

Thanks for the reply. Regarding your questions:

1. Merchant account is all set up.
2. I have got the token. It is the PDT Identity Token.
3 & 4. I think the token the client gave me may be the problem. He gave me PP509. Certainly not a long string as per your example. I have asked him to check this out.

The orders etc. are being added to the tables and all email notifications of payment etc. are being sent out and received. I am sure that the orders are going through, just not the IPN stuff.
All files are uploaded and YES, I do test this on a server :) not localhost.
Name of the IPN page is set up correctly as the autoreturn page in paypal.

Thanks for this Rick, I tend to think that it is the token that is the problem. I will post the result here to let you know.

Kindest regards,

Trevor
View profile  Send private message
Rick

Posts: 52
Posted: 08/09/2010, 3:20 PM

Yes, the token is at least part of the problem because the tokens are very long.

You can also have whoever has control of the merchant PayPal account set you up with limited merchant account access so you can login and see the info you need. They can always remove your access after everything is working.

Good luck.
View profile  Send private message
saseow

Posts: 744
Posted: 08/09/2010, 5:58 PM

Hi Rick,

Thanks again for pointing me in the right direction. The problem certainly was the token that the client gave me. It is working perfectly now.

Kindest regards,

Trevor
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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