#transpile
1 messages · Page 1 of 1 (latest)
I think return_url is what you're talking about, yes?
If so, it is a required parameter, since sometimes the customer has to be redirected away from your web page to authenticate. You may want to look into redirect : https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect
Honestly i dont want to redirect users from the same page , a modal is supposed to pop up after the payment is complete and i need to handle that manually from my end
so if there is any other methods i can use without using the request url as required param
Since the Payment Element is used, there can be redirect payment method selected and used by the customer. Customer will be redirected to the payment method page to complete the payment. After the payment is completed, Stripe will use return_url to redirect the customer back to your website. Therefore, return_url is required
So if i use cardElement in this case i don't get to use redirect users after a successful payment ?
If you use card element, then return_url is not required
ok, i'm using it now
Please how do i disable the ZIP field?
Is the field required ?
It depends on the card issuer. Some card issuer requires zip code
I have been able to implement it , but is there no a way to validate the card inputs and throw error if user click without feeling the required details? @grand gale
Stripe provides input validation https://stripe.com/docs/js/element/input_validation, which you can show the validation error message