Open malcolmhmaclean opened 1 year ago
Hi Malcolm,
A few answers below:
With regards to determining the existence of the pay button, you might be able to listen to the js variable the button creates; if it exists, you'll know the button is present.
I have to say, I've never really thought about it like that, though. Given a web payment button is an 'all-in-one' checkout solution, the user probably won't interact with any of the conventional checkout fields if it's at the top of the checkout flow.
Thanks so much for the detailed answers Alex - really appreciate it
Pleasure; I hope they help you get your integration over the line.
I'm going to close this, but if you have anything further, feel free to reopen the issue, or ping us an email at dev [at] ethercreative.co.uk.
Hi Alex
Apologies for dropping you another line - i thought it was all working ok but its not quite there as yet.
I am testing on GPay Desktop and Mobile and also Apple Pay on my iphone. When i click the Pay button the pop/slide up all comes up fine and the details within all look fine (amount,desc etc) but when i click pay for Apple it buzzes the phone then the payment prompt dissapears and for GPay it tries to process then just comes back to the same screen (in the popup) with the PAY button ready to press again. In either case i cannot see any transaction attempts in Craft Orders or in Stripe itself.
Any idea if i missing something simple?
This is my code:
{{ craft.webPayments.button({
cart: craft.commerce.carts.cart,
requestDetails: ['name', 'phone'],
onComplete: {
redirect: '/commerce/order?number={number}&success=true',
js: 'window.paymentCompleted(cwp.number);',
},
}) }}
Malcolm
Hi Malcolm
Do you think you'd be able to share some screen recordings of what you're seeing on the computer and device? Feel free to email them over to the dev address above so that they're not public. I'm trying to get my head around what you're seeing and the order of events unfolding.
Thanks
Hi, I am testing out implementing this for an existing clients commerce checkout.
I am having trouble consistently tryjng to show the Google Pay / Apple pay buttons.
Is there a way to have some logic as to whether a Pay Button will appear - as i wil need ot hide the billing address as its not needed if using Apple {ay
Any ideas much appreciated Malcolm