#Dave_Adapptor-ReactNative

1 messages · Page 1 of 1 (latest)

primal pivot
autumn pier
#

Doesn't look theres a suitable web hook though as we're only taking their card details for later payment (future payments) so I don't think any of those would be fired?

#

If thats the case then basically we can't use Stripe for our app? Or could I perhaps use an older version of the library i.e. is this only broken in the latest version?

primal pivot
#

By taking card details for later (future) payments, do you mean you are using SetupIntent?

#

How does your code look like?

autumn pier
#

So yes, on the server side we use SetupIntent

#
    customer: customer.id,
  });
  res.json({
    setupIntent: setupIntent.client_secret,
    ephemeralKey: ephemeralKey.secret,
    customer: customer.id,
    publishableKey: process.env.publishable_key
  })```
#

Then on the client call initPaymentSheet followed by presentPaymentSheet

#

Although that doesn't support Apple pay which might be an issue as well.

primal pivot
#

Hello @autumn pier normally when you use SetupIntent it would work seamlessly with PaymentSheet, and after the SetupIntent is confirmed you should receive webhook events on backend indicate that the SetupIntent is confirmed correctly.

#

To the fact that why PaymentOption doesn't receive anything, could you please write to our Support and we can look into it further?

#

That said I will need to step down for the day, we will continue support you on Support ticket that way we can gather resource and consult with other colleague as well

#

The event you should receive for successfully confirm a SetupIntent: setup_intent.succeeded

#

Inside it you will have the SetupIntent object, which in turn has the Payment Method ID

#

Inside PaymentMethod object you should have everything you need to know about that card