Apple Pay / Google Pay #164
Replies: 16 comments 1 reply
-
I'll take a stab at this when I get around to issues 26 through to 28. |
Beta Was this translation helpful? Give feedback.
-
@andris-sevcenko Any chance you have had time to look at this? Thanks |
Beta Was this translation helpful? Give feedback.
-
I wish :( |
Beta Was this translation helpful? Give feedback.
-
@philipboomy I actually ended up getting this working, I'll see what I can do about sharing the code but the link to the repo above got us close. There was actually an unrelated Commerce bug that got fixed... Commerce was thinking the order had changed but it actually had not... |
Beta Was this translation helpful? Give feedback.
-
Thats great you got it working. If you could share some of the code then I would really appreciate it. No rush though. |
Beta Was this translation helpful? Give feedback.
-
@RitterKnightCreative I'm also interested if you can share the code. If it's not hard to include in the gateway that would lessen the friction for me to add this to the gateway. |
Beta Was this translation helpful? Give feedback.
-
@RitterKnightCreative We're working on a plugin to add Google/Apple pay support if you're interested in trying it out (not released yet as we're testing it on client sites first). |
Beta Was this translation helpful? Give feedback.
-
@Tam I'd be interested in trying the plugin but can't seem to get it installed. How should that be done? Nevermind! I was being dumb. Got it installed and seems to work OK so far! |
Beta Was this translation helpful? Give feedback.
-
@Tam Nice! We completed our implementation a while back as well, got sidetracked and sort of forgot about this thread but I'll get our code up here on GH as well and I'll take a look at yours... What's nice about Stripe's implementation is it works for not only Android but also Chrome's autofill. |
Beta Was this translation helpful? Give feedback.
-
@RitterKnightCreative That would be awesome. I just came back to this today and still looking at how to do this. |
Beta Was this translation helpful? Give feedback.
-
Here's the code that works for us. Our Stripe This also supports taxes and shipping so when you change your address, it'll fire back with the available shipping methods. After we get the City and State, the cart will get updated but the browser won't give you back the full address until the order is submitted which is kind of a pain. Commerce wants to see First Name and Last Name as separate fields but AFAIK, that's not possible in V3 of Stripe (it was in V2) so we do a quick split, probably because Google Pay/Chrome autofill in chrome only shows Full Name. That function could probably be improved. |
Beta Was this translation helpful? Give feedback.
-
@RitterKnightCreative Thank you so much for sharing the code and the tips. |
Beta Was this translation helpful? Give feedback.
-
@andris-sevcenko is there any update with progress on this being completed in this plugin? |
Beta Was this translation helpful? Give feedback.
-
Did this ever get solved? Either natively or as a plugin? |
Beta Was this translation helpful? Give feedback.
-
Bumping this again. |
Beta Was this translation helpful? Give feedback.
-
Also bumping. Have a client who just signed up for Stripe and wanting Apple and Google Pay. |
Beta Was this translation helpful? Give feedback.
-
Stripe supports both but both Apple Pay in particular works around the "standard" checkout process of grabbing data.
Is there a good canonical example of supporting Apple Pay in Craft Commerce?
This got us close, but with the changes to C2, we had to change a few things to make it go and I was able to get Stripe to charge the card but Commerce is not accepting the order.
Beta Was this translation helpful? Give feedback.
All reactions