I have developed a restaurant ordering app where each restaurant has its own Stripe payment gateway integration. The payment process is working fine, but we are facing an issue with saving customer cards at the app level.
We want customers to be able to save their cards once and use them to pay at any restaurant automatically. However, based on our research, Stripe does not allow storing card details directly via API. Instead, it requires using Stripe.js or another payment gateway to securely handle card information.
Since we have multiple Stripe accounts (one for each restaurant), how can we implement a system where:
A customer saves their card once in the app.
The saved card can be used to pay any restaurant automatically.
Is there a recommended approach using Stripe for this scenario? Or should we consider an alternative payment method?
Any guidance or best practices would be greatly appreciated.
I have developed a restaurant ordering app where each restaurant has its own Stripe payment gateway integration. The payment process is working fine, but we are facing an issue with saving customer cards at the app level.
We want customers to be able to save their cards once and use them to pay at any restaurant automatically. However, based on our research, Stripe does not allow storing card details directly via API. Instead, it requires using Stripe.js or another payment gateway to securely handle card information.
Since we have multiple Stripe accounts (one for each restaurant), how can we implement a system where:
A customer saves their card once in the app.
The saved card can be used to pay any restaurant automatically.
Is there a recommended approach using Stripe for this scenario? Or should we consider an alternative payment method?
Any guidance or best practices would be greatly appreciated.
Share Improve this question edited yesterday DarkBee 15.5k8 gold badges72 silver badges117 bronze badges asked yesterday LalitLalit 9 New contributor Lalit is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 3- Unsure why you feel the need to store credit card information, this makes you liable if a breach happens. Please also see this answer and here as well – DarkBee Commented yesterday
- The stripe.js will store the card information as a token and is only usable for stripe. It will never store the card information itself. – Tatachiblob Commented yesterday
- You can save the card(payment method) to a customer who belongs to the platform and use Destination Charge(docs.stripe/connect/destination-charges) for each Stripe Account – Ridox Commented yesterday
1 Answer
Reset to default -1you'll want to set up a platform account (it can be one of your existing Stripe accounts, or create a new Stripe account), and connect it (via OAuth) with the other Stripe accounts. So that you can save the payment methods on the platform, and clone them to the connected accounts and use them for direct charges. The details are covered in this doc