#benk-reactnative-more
1 messages · Page 1 of 1 (latest)
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
benk-reactnative-more
Not sure, I'm asking my team, will take a while to get a response
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
@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
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?
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.
What is the correct way to do this?
Using Express accounts + Destination Charges and everything living in your platform
And that's definitely your choice, but that's how you end up with this complex cloning dance that makes everything so complex
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
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!
ok thanks, please do
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
ok well... thanks for asking
Sure!
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?
Not sure sorry you'll have to test this carefully in Test mode to confirm