#Madalina oiegas-RN-paymentsheet

1 messages ยท Page 1 of 1 (latest)

steady hamlet
#

Hi there ๐Ÿ‘‹ could you articulate the actions you're taking a bit more?

open patrol
#

here is what I do and when I log the paymentOption it is undefined

steady hamlet
#

Gotcha, so you're launching the paymentSheet, completing the payment process, and once the sheet is dismissed you're seeing that paymentOptions is still undefined?

open patrol
#

yes

steady hamlet
#

๐Ÿ‘ gotcha, and what payment method are using during your testing?

open patrol
#

Visa credit card

odd fox
#

if the second response object(paymentOption ) from presentPaymentSheet is undefined, then what is the value of error instead?

open patrol
#

it's not returned. This is all I get from presentPaymentSheet

odd fox
#

fair enough, let me check some things and get back to you in a little while

#

yeah I tested this and looked at the code a bit and it seems like this never gets set, or at least it's not consistent. We don't use it in any of our examples.

#

so I would say to just not use this paymentOption since it's not really returned in a consistent way.

What are you really trying to do?

open patrol
#

then the backend should handle the response of the /setup_intens/${id}/confirm ?that can be visible on Stripe Dashboard?

odd fox
#

well your backend gets a webhook about this, or you could send a request to it from your app.

#

you know the setup succeeded because there was no error returned so you can let your server know

open patrol
#

tried to call this but the app crashes withpout any error returned. I will investigate it further

odd fox
#

hmm it shouldn't just crash, so I'm sure there's something simple that's slightly wrong there then!