#DeputyCheese

1 messages · Page 1 of 1 (latest)

spiral trenchBOT
proud bison
#

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?

wispy urchin
proud bison
#

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?

wispy urchin
#

The payment will fail

#

I'll be stepping away and my coworker @heavy bone will be taking over

halcyon marsh
#

Hi! I'm taking over this thread.

#

Let me know if you have any other question.

proud bison
#

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

halcyon marsh
#

The flow is like this:

  • Create the SetupIntent with a customer on 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_method https://stripe.com/docs/payments/save-and-reuse?platform=web
proud bison
#

Ah I think I got it, let me please test it for a second

#

Looks good, thanks so much for your help!

halcyon marsh
#

Happy to help 🙂

proud bison
#

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."

halcyon marsh
proud bison
#

Ah sorry, somehow now it's working

#

Maybe a cache issue