#ShakeR

1 messages · Page 1 of 1 (latest)

exotic micaBOT
compact lava
#

Depends on what you call a myriad, the two calls will need to make here are an update call on the server to update the payment intent and then make the Stripe.js call to refresh the payment method data that you have (the correct amount will be charged without that request, but Apple/Google pay would display the incorrect amount without an update)

#

I am looking for that Stripe.js call now

glacial kindle
#

Yeah, I think more calls will be involved on my end just to make the shipping form / modal play nice with Stripe Elements.

fetchUpdates looks critical though, thank you!

Part of what makes this tricky is keeping Stripe's state intact while populating / handling shipping methods independently. I wasn't sure if Stripe had any tools I might not know of to deal with this easier. I need to know (in pseudo)...

completeAddressEntered to enable "Select Shipping Method" button (modal toggle).

And all (3) completeAddressEntered, shippingMethodSelected and paymentInfoEntered to enable my "Complete Order" button.

I haven't made it this far in the API, but I'm assuming there's a listener I can use from Stripe re: completeAddressEntered and paymentInfoEntered to toggle on this button? (I have to deal with shippingMethodSelected on my own).

compact lava
#

Good questions, I am less familiar with the address element but will look in to what we have to help you here