Hey, I get the following error in console when payment is completed and it stops the page from redirecting.
Call to complete() was ignored because it has already been called. Do not call complete more than once.
My code is as follows
{{ craft.webPayments.button({ cart: craft.commerce.carts.cart, requestDetails: ['name', 'phone'], onComplete: { redirect: '/shop/checkout/order/number={number}', js: 'window.paymentCompleted(cwp.number);', }, requestShipping: 'delivery', style: { height: '52px', } }) }}
Anyone come across this before?
Thanks