craftcms / commerce-paypal

PayPal payment gateway for Craft Commerce.
https://plugins.craftcms.com/commerce-paypal
MIT License
6 stars 9 forks source link

cancelUrl is ignored? #14

Open bossanova808 opened 5 years ago

bossanova808 commented 5 years ago

I have this in my payment form:

<input type="hidden" name="cancelUrl" value="/cart/payment">

...this works with Commerce V1 and returns to:

https://mylivesite.com.au/cart/payment?token=EC-7XY47599960613715

If I cancel a payment on Commerce V2, however, it cancels back to my homepage, not the payment page:

https://dev.whatever.net.au/?token=EC-5RK943246T290434N

(I can see a reference to cancelUrl in commerce-omnipay, buty not in commerce-paypal)