I'm building an iOS application using Firebase as my backend and want to implement Stripe without an external server. I've already checked out this post: Firebase payment gateways? — and it shows the following process regarding Stripe's payment process/gateway:
- User initiates transaction on your site
- Client code sends them to Stripe to enter their CC info
- Client code obtains a token representing the secure transaction
- A server process is notified by stripe when the transaction is validated
- The server submits the payment authorization with the token
- Stripe sends a transaction receipt to the server process or Zapier, which would be stored back in Firebase
I've already contacted Firebase regarding Zapier and they told me that Zapier doesn't support this process anymore. Also: Unlike Braintree, which requires to generate a token server-side, Stripe's key is associated with my account.
Theoretically then, I would be able to integrate Stripe with no external server using Firebase's REST API, correct?
We can use any Firebase Realtime Database URL as a REST endpoint. All we need to do is append .json to the end of the URL and send a request from our favorite HTTPS client. https://firebase.google.com/docs/database/rest/start
Any help is really appreciated, thanks!