$_GET[]/$_POST[] vars blank on return from successful payment?

tim-ouimet
Contributor
Contributor

Hey!

 

I'd created a PayPal button in 2008. It's been working great until recently!.

 

It was going here: <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

 

At the moment - I've updated & created a button in the developer area, and used & pointed to the sandbox.paypal.com address. Upon a successful payment, neither $_GET nor $_POST have any values in them.

 

Is this typical now of the payment return?

 

I used to pick up a couple vars through the $_GET via these when the successful transaction returned to a specific URL (as noted in the custom section of the button).

 

$tx = $_GET['tx']; // Weird **bleep**..
$st = $_GET['st']; // Completed
$amt = $_GET['amt']; // 10.00
$itm = $_GET['item_number'];
$cc = $_GET['cc']; //CDN

 

Any direction or pointers would be super handy.

 

Thanks in advance,

 

Tim Ouimet

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Nacho
Moderator
Moderator

Hi,

 

The variables you have pointed out are part of Payment Data Transfer (PDT), which is a feature that needs to be enabled in your Live/Sandbox account.

 

Can you check in your accounts if both Auto Return and PDT are currently enabled? Otherwise, please enable them and test again.

 

These are the direct links to the Website Payment Preferences section:

 

https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-website-payments

 

https://www.sandbox.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-website-payments

 

 

View solution in original post

Login to Me Too
2 REPLIES 2
Solved

MTS_Nacho
Moderator
Moderator

Hi,

 

The variables you have pointed out are part of Payment Data Transfer (PDT), which is a feature that needs to be enabled in your Live/Sandbox account.

 

Can you check in your accounts if both Auto Return and PDT are currently enabled? Otherwise, please enable them and test again.

 

These are the direct links to the Website Payment Preferences section:

 

https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-website-payments

 

https://www.sandbox.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-website-payments

 

 

Login to Me Too

tim-ouimet
Contributor
Contributor

YES!

 

Argh - Been trying to find the name for what I was looking for and couldn't!!! Thanks again!

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.