You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to show errors if payment parameters are not valid in the apple pay sheet.
Describe the solution you'd like
Would be good to display a general error message and disallow the pay button if the shipping address isn't valid for example, or if possible show validation for particular shipping address fields, like zipcode or state.
Additional context
When "onShippingContact" event is triggered you usually need to run some logic where you calculate taxes or shipping method prices. There can be a situation where the user inputs an invalid shipping address and I don't see a way to point out that error to the user in the apple pay sheet.
The text was updated successfully, but these errors were encountered:
Thanks for flagging this. It is currently not supported and we also don't provide a way to dismiss the payment sheet, so currently can't really handle that case.
We should probably do two things
Allow to programmatically dismiss the payment sheet
Allow to provide an error in the handler for onShippingMethodSelected and onShippingContactSelected to be shown in the payment sheet.
Is your feature request related to a problem? Please describe.
I would like to show errors if payment parameters are not valid in the apple pay sheet.
Describe the solution you'd like
Would be good to display a general error message and disallow the pay button if the shipping address isn't valid for example, or if possible show validation for particular shipping address fields, like zipcode or state.
Additional context
When "onShippingContact" event is triggered you usually need to run some logic where you calculate taxes or shipping method prices. There can be a situation where the user inputs an invalid shipping address and I don't see a way to point out that error to the user in the apple pay sheet.
The text was updated successfully, but these errors were encountered: