Paypal Return url is truncated

713 Views Asked by At

Paypal return url truncates the Query String.

My Paypal return url is :

$returnURL = "http://localhost/eko/index.php?module=UserPlans&action=PaymentSuccess&Response=success";

and it is truncated after paypal adds up token and payer id.

truncated url becomes

http://localhost/eko/index.php?module=UserPlans&token=EC-2F968245J76799249&PayerID=PYEYM7DB7XSNN

Truncating the action and response.

My application is based on sugarCrm, module and action in query string is required.

1

There are 1 best solutions below

0
On

Use URL Encoding

$returnURL = urlencode("http://localhost/paypal-test/index.php?module=UserPlans&action=PaymentSuccess&Response=success");