#Muhammad Awais

1 messages · Page 1 of 1 (latest)

worn cobaltBOT
empty mortar
#

Hello! Are you asking about the Payment Element or something else?

#

But if you do that you need to supply the country in billing_details.

inner lily
#

How do I know if the user has chosen card or affirm?

empty mortar
inner lily
#

can we retrieve that via javascript?

#

so that I can call confirmPayment or confirmAffirmPayment accourdingly

empty mortar
#

If you're using the Payment Element you only need to call confirmPayment; it will handle any form of payment provided.

#

The payment-method-specific functions, like confirmAffirmPayment, are only required for other integrations which do not use the Payment Element.