#lost.prototype
1 messages ยท Page 1 of 1 (latest)
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.
Afterpay requries a shipping address
It's not captured on their end (as part of the next-steps)?
No, you need to provide it in PaymentIntent.
Interesting, I guess I would have expected the Stripe Element to expand to prompt for address details at that point.
Possible feature request?
๐
You can use Address Element
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?
https://stripe.com/docs/js/element/events/on_change#element_on_change you can listen to change events and check the value.type