Not understood of payment flow with PHP-SDK

danny-36
Contributor
Contributor
 

I developed a payment gateway with paypal and php with this SDK https://paypal.github.io/PayPal-PHP-SDK/

 

On my website implementation when buyer click on checkout he redirected to paypal for payment (sandbox for now) and he can see a paypal page with a next button, when buyer click con next button he redirected to my site in the url specified on $redirectUrls->setReturnUrl('myurl')

but in some examples I've seen for "Paypal Button Payment" the buyer must be accept the payment before he redirect to the website.

Am I doing something wrong?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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