cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Member

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

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

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

 

 

2 REPLIES
Moderator

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

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

 

 

Member

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

YES!

 

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