#Abishek-confirm-setup

1 messages · Page 1 of 1 (latest)

past elbow
#

Hi there 👋 they're very similar. confirmSetup is better suited if you're working with our Payment Element that can accept different types of payment methods, whereas confirmCardSetup works with our Card Element to specifically accept card payment methods.

spiral falcon
#

ok, so with a setupIntent, it them makes sense to work with confirmCardSetup as other payment methods aren't available. Right?

past elbow
#

Setup Intents are versatile and can handle several types of payment methods. How are you collecting the payment method details on your site?

spiral falcon
#

Stripe Elements

#

custom payment flow

past elbow
#

And which element(s) are you using?

spiral falcon
#

i currently have only the Card Element setup, I wasn't sure other elements like Apple Pay and Google Pay can be enabled for Setup Intent that can be used to pay Subscriptions or Onetime Payments

#

one other thing I noticed is that confirmSetup doesn't require the setup intents client Secret, but confirmCardSetup requires it

past elbow
#

Gotcha, if you're using the Card Element then you will want to use confirmCardSetup.

spiral falcon
#

so, is card element the only one supported for setup intents that works with Subscription and Onetime payments for future payment purposes?