Sylius / PayPalPlugin

Official integration with PayPal Commerce Platform
37 stars 56 forks source link

Other options of integration PayPal on frontend #222

Open Sklico opened 2 years ago

Sklico commented 2 years ago

For now PayPal buttons is the only supported option for integration PayPal. It would be nice if route /create-pay-pal-order could accept arguments for PayPal createOrder method in it's body.

For example return_url, which is necessary when you don't want to use PayPal buttons, but redirect to checkout instead. Now, when you redirect users to PayPal checkout page, it never returns them to e-shop, because PayPal doesn't have return_url, which should be provided in create PayPal order process as a part of order context. So after approve transaction, PayPal doesn't return user back to the e-shop, but stay on checkout page without option to go back and complete transaction.