#useRef

1 messages · Page 1 of 1 (latest)

late trenchBOT
strange mirage
#

hi! can you share the exact frontend Javascript code that you call that is resulting in that error?

#

and also a PaymentIntent ID pi_xxx where you had this problem

next osprey
#

pi_3LmEnkHzY6Td5duF0DD5zNXe

strange mirage
#

does just confirmPayment(clientSecret) work?

next osprey
#

actualy confirmCardPayment do not exist in the react native library

#

what make me worry that saved payment works with subscription in the front handleCardAction(clientSecret)

strange mirage
#

ok, I didn't know this was React Native

#

just do this:

 const {error} = await confirmPayment(clientSecret, {
          paymentMethodType: 'Card',
          paymentMethodData: {
            billingDetails,
            paymentMethodId: "pm_xxxx"
          },
        });
```
(pass the pm_xxx back from your backend server). That's the easiest way and it works
next osprey
#

thank you so much it works like sharm when we add paymentMethodId