Welcome Guest, Not a member yet? Register   Sign In
auto return from paypal not working in sandbox mode
#1

[eluser]dhananjay[/eluser]
passing this

$this->paypal_class->add_field('rm', 2);
//auto return users to website

have set up in sandbox at this url
https://www.sandbox.paypal.com/uk/cgi-bi...e-payments

Auto Return:
on

auto return url
: http://jobr.in/clients/the-school-shop/p...nt-success

PayPal Account Optional:
off

but its not returning to url after payment

i m passing

$this->paypal_class->add_field('return', base_url().'pages/registration-payment-success'); // return url
$this->paypal_class->add_field('cancel_return', base_url().'pages/registration-payment-canceled'); // cancel url

these too

and one more question i have two methods and both have diffrent return urls will that work as i m passing return url in both of them



any help would be much appreciated


Thanks a lot
#2

[eluser]Clooner[/eluser]
setting rm to 2 means a post return which means it will post data to an url. Maybe you have csrf enabled and not sending a correct token will give a 500 error!
#3

[eluser]dhananjay[/eluser]
everything working fine i make payment i get ipn notification
when i make payment there is a link return to this website when i click at that it returns to the page whose url i m sending as return url

but what i want that after making payment it should redirect to my success page thats what not happening

i am handling everything using ipn function it does not matter that at success url it paas anything or not but i just want it to redirect back to my success url after making payment
#4

[eluser]Clooner[/eluser]
try wrapping the url in htmlspecialchars
#5

[eluser]dhananjay[/eluser]
what difference it will make its accepting already return url it redirecting too but when i click on return but i want it to return automatically........




Theme © iAndrew 2016 - Forum software by © MyBB