#benk-reactnative-more

1 messages · Page 1 of 1 (latest)

jovial pondBOT
solemn sedge
#

My solution to send an existing client_secret will probably not work. I now see that confirmHandler actually goes to stripe, looks for the payment and confirms it

#

I must find a way to simulate a successful payment to close it or find a way to simply close the sheet even without showing the success animation. I can then show a success message in an alert

#

This is from feat: add option for finalizing payment on the server with PaymentSheet

minor vault
#

benk-reactnative-more

#

Not sure, I'm asking my team, will take a while to get a response

solemn sedge
#

It's ok, spent already a week working on it. I can wait a little longer. Appreciate you asking

#

I dug through the react native stripe lib and I see no way to manipulate the UI in any way

#

I also could not find a way to force it to just display that sucess animation and close the sheet

#

If there was a way, I could just use patch-package to change the behavior in the meantime

minor vault
#

@solemn sedge we don't think any of this is possible no. Also you already have an extremely complex and dangerous integration path full of risks and edge-cases, I wouldn't add some change to the library on top of it honestly

solemn sedge
#

I don't understand. I want our customer to be able to purchase from connected accounts. The solution I designed was suggested by Rubeus. I want to use the UI paymentSheet provided by stripe react native to accomplish it. How is what I have extremely complex and dangerous

#

What is, then, the correct way to do it if not the way I was told?

minor vault
#

I have already discussed this with you, we had that debate, that the way you are building this with Standard accounts is really uncommon and why you have to do all of that complexity.

solemn sedge
#

What is the correct way to do this?

minor vault
#

Using Express accounts + Destination Charges and everything living in your platform

solemn sedge
#

I do not want to use Express accounts

#

It doesn't make sense financially

minor vault
#

And that's definitely your choice, but that's how you end up with this complex cloning dance that makes everything so complex

solemn sedge
#

It's not complex at all. It works just fine and all that is left is to dismiss the paymentsheet. If this was such a bad idea, I doubt Rubues would suggest it and I doubt it would be documented on Stripe

minor vault
#

I'm sorry but we spent at least 15 hours helping you with this so you can't say it's not complex 😅

#

Anyways, let's pause, I'll circle back in a bit once I get an answer!

solemn sedge
#

ok thanks, please do

minor vault
#

Okay I talked to Rubeus and they confirmed this is impossible to do with React Native so you won't be able to use PaymentSheet this way

solemn sedge
#

ok well... thanks for asking

minor vault
#

Sure!

solemn sedge
#

I will use this: https://stripe.com/docs/elements/customer-sheet?platform=react-native then instead and handle the payment in two steps - 1: select/add PM and 2: Confirm payment. Not ideal, but meh. Just a quick questoin about this - if they select their PM and confirm I get back the PM. I can then do the rest exactly as I have set up? as in, clone the PM on the connected account, create a PI and confirm?

minor vault
#

Not sure sorry you'll have to test this carefully in Test mode to confirm