craftcms / commerce-paypal-checkout

PayPal Checkout gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-paypal-checkout
MIT License
5 stars 10 forks source link

Checkout keeps redirecting to order-success page #36

Open hilbertknl opened 3 years ago

hilbertknl commented 3 years ago

Description I hope you have an idea how this is possible. I get redirected to the success page every time I try to finish my order.

To Reproduce Just created a new App in the PayPal Developer Portal (live and dev).

In the Craft Gateway, I swapped the old version (for Commerce 2.0) to the new payment method with the created keys.

Every time I try to finish my order on the front-end, I will be redirected to the order success page without seeing PayPal.

We don't use the payment HTML as suggested, we have our own HTML which works well with the current PayPal link.

Does not work with our live or sandbox keys. There are no logs available in the storage/logs folder.

Expected behavior I would like to see the PayPal payment screen.

Additional info

I hope this is some kind of setting, like to hear from you soon :-).

DanielDarrenJones commented 3 years ago

I am having the exact same issue here, does the same behaviour when using test mode with sandbox credentials as well as non test mode and the live credentials.

nfourtythree commented 3 years ago

Hi @DanielDarrenJones & @hilbertknl

I am unable to replicate this with the latest Commerce and PayPal Checkout plugin using the example templates.

In a test/local environment if you try using the example templates do you still get the same issue?

You mention using custom HTML (I assume JS) have you updated this to work with PayPal Checkout as this is a different implementation than the previous PayPal gateway plugin.

Thanks.

hilbertknl commented 3 years ago

Hello @nfourtythree,

I will try the examples in the next couple of days. I will get back to you.

hilbertknl commented 3 years ago

Hello @nfourtythree,

Using the example template did not fix my issue, unfortunately. Do you have other options we can try?

It is also a possibility to give you access to our development environment.

Kind regards, Hilbet

nfourtythree commented 3 years ago

Hi @hilbertknl

I think it will be best to take this through support.

If you could email your composer.json, composer.lock and a backup of your DB to support@craftcms.com we can try and replicate your issue to see what is going on.

Thanks.