#SudoPlz-reactnative-confirm
1 messages · Page 1 of 1 (latest)
@crystal mulch no it's in the form of seti_123456ABCDE_secret_123456ABCDE
Gotcha - so that's a Setup Intent client secret. You'll want to use confirmSetupIntent instead
got it, that makes sense, thank you
@crystal mulch and to answer my other question, what's the difference between
confirmPayment (https://stripe.dev/stripe-react-native/api-reference/modules.html#confirmPayment) and
handleCardAction (https://stripe.dev/stripe-react-native/api-reference/modules.html#handleCardAction)
Is there a good explanation of what each one does and if we have to use them in conjuction one after the other?
Documentation for @stripe/stripe-react-native
handleCardAction is something you should only use if you're doing a server-side confirmation flow (as described in our docs here https://stripe.com/docs/payments/accept-a-payment-synchronously). I'd really recommend using confirmPayment instead since it will handle both the confirmation and the additional actions at the same time
got it, so it's one OR the other.
We're creating the intent on the server side, but we're capturing on the client side, so I assume we should only use confirmpayment then