I am working to connect Stripe up with my iOS Swift app to handle payments. Below is a flow chart I found which contains the conventional flow chart for integrating Stripe with an iOS app. Here it is:
I am wondering if I could alter this flow chart to be the following steps:
- [From phone to web server] Send request token containing booking information.
- [From web server to Stripe] Send credit card data which is stored on web server.
- [From Stripe to web server] Return token.
- [From web server to Stripe] Send token back, confirming transaction.
- [From Stripe to web server] Transaction response.
- [From web server to phone] Transaction response.
Obviously, the main difference is starting by sending a token with the booking request info to the web server, instead of sending the credit card data to stripe. This avoids having to constantly ask the user for their credit card info, as that info is stored on the web server. Does this look safe?