#DeputyCheese
1 messages · Page 1 of 1 (latest)
I am using createPaymentMethod() and I'm receiving the following response for example:
Or will the user only be questioned for the 3d secure if the credit card payment fails (on subscription renewals) and then has to confirm via 3ds?
stripe.createPaymentMethod only collects payment method information and it doesn't support 3DS. I'd recommend using SetupIntent to collect payment method instead that supports 3DS: https://stripe.com/docs/payments/save-and-reuse
I see
What would happen if I collect a payment method via createPaymentMethod and in the next payment cycle it fails because 3ds is not supported?
The payment will fail
I'll be stepping away and my coworker @heavy bone will be taking over
Hi
Yes, one more question
When creating a setup intent and receiving the setup_intent_client_secret from stripe -> how would I attach this as the default payment method to the customer? I would need a payment method for this one and I only have the setup intent client secret.
I am using $stripe->paymentMethods->attach()
And then the first parameter is a payment method token
But I only have for example this: setup_intent=seti_1M7Et2ClDK2O5WMjgGVS6ceK&setup_intent_client_secret=seti_1M7Et2ClDK2O5WMjgGVS6ceK_secret_MqwmGPcs1AsUL768Qur7De8pihHf2zD
The flow is like this:
- Create the SetupIntent with a
customeron the backend - Retrieve the client_secret and send it to your frontend
- Use the client_secret to collect the payment information with the Payment Element and confirm the SetupIntent
- At that point you have a new payment method attached to the user, but it's not the default payment method
- So update the customer's
invoice_settings.default_payment_methodhttps://stripe.com/docs/payments/save-and-reuse?platform=web
Ah I think I got it, let me please test it for a second
Looks good, thanks so much for your help!
Happy to help 🙂
Sorry, one more thing
I can't style the payment form
It doesn't matter what I define as appearance
And I see an error message "No UI will be shown. CanMakePayment and hasEnrolledInstrument will always return false. Show will be rejected with NotSupportedError."
I can't style the payment form
Can you clarify what you want to style and what you have tried?
To customize the Payment Element we have this doc: https://stripe.com/docs/elements/appearance-api