#itsb1ank
1 messages · Page 1 of 1 (latest)
Which error message do you mean?
like generic_decline
when I use stripe checkout, it's really nice that it can handle all the errors
I want to do the same in custom payment flow
👋 Taking over this thread
Payment Element doesn't display the error message automatically. Your UI should display them since Payment Element is meant for custom payment flow.
ah okay, is it possible to customize the payment element to make it look very similar to checkout?
Stripe provides Appearance API which you can use to style the elements: https://stripe.com/docs/elements/appearance-api
Is it possible to change the text colour of a certain field after initializing the element?
I'm afraid this will not be possible, but you can add CSS rules to change the color: https://stripe.com/docs/elements/appearance-api?platform=web#rules