#railedofficial - confirm
1 messages ยท Page 1 of 1 (latest)
hey soma ๐
Thanks for your help
I am currently using an integration that i manually collect card details ont he client, use the stpapiclient to create a token then use that token to charge serverside
once I check stock
but I was jsut wondering if payments sheets or something similar exists for adding a payment method client side where I can then send and confirm serverside
Can you clarify how you are currently accepting payments? Is it on iOS/Andoird app, and with the Card Element?
ios
the card textfield element
this one
I then use STPAPIClient to create a payment method, that payment method token is sent to the serverside and used to confirm the payment
Thanks, looking into this.
thanks soma ๐
I think you have two options:
- Use
capture_method:manualwhen creating the PaymentIntent, and only capture the funds if you have stock available https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method - Or finalize the card payment on the server by following this guide: https://stripe.com/docs/payments/accept-a-payment-synchronously?platform=ios