#luanvdw-SI

1 messages · Page 1 of 1 (latest)

hollow osprey
#

Hi! If you want to set a default payment method, that's something that you'll have to do on your backend server by updating the customer.

next moat
#

Ok, thank you

So for example

Step 1;

const { error } = await stripe.confirmSetup({
      elements,
      redirect: 'if_required',
      confirmParams: {
        return_url: '',
      },
    })

step 2;

on success ☝️ then update the customer object separately?

hollow osprey
#

Yes exactly. You could listen to the webhook event setup_intent.succeeded to actually update the default payment method.