Userbase

Docs : SDK : updatePaymentMethod

updatePaymentMethod redirects your users to a Stripe Checkout form that allows the user to input a new credit card.

    
      userbase.updatePaymentMethod({
        successUrl: 'https://example.com/success',
        cancelUrl: 'https://example.com/cancel'
      }).then(() => {
        // user successfully redirected to Stripe Checkout form
      }).catch((e) => console.error(e))
    
  

Parameters

Notes

Errors