#lost.prototype

1 messages ยท Page 1 of 1 (latest)

zealous berryBOT
blazing star
#

Missing required param: shipping[address][line1].

#

I was able to successfully test Klarna, but Afterpay - despite the instructions in grey - seems to die on the server-side portion.

sand marsh
#

Afterpay requries a shipping address

blazing star
#

It's not captured on their end (as part of the next-steps)?

sand marsh
#

No, you need to provide it in PaymentIntent.

blazing star
#

Interesting, I guess I would have expected the Stripe Element to expand to prompt for address details at that point.

#

Possible feature request?

#

๐Ÿ˜„

sand marsh
#

You can use Address Element

blazing star
#

So I'd have to detect when the payment method becomes afterpay and then show that element somewhere below?

#

Do you know if the Stripe React <PaymentElement /> in react has events I can subscribe to to detect this?

sand marsh
blazing star
#

Sweet, alright.. I guess that'll have to be it for now.

#

I'd love to see a feature request for the normal <PaymentElement /> to self-adjust to capture this info. Just reduces the amount of extra wiring I have to write. ๐Ÿ˜„

#

Thank you!