top of page

Stripe payment gateway

This post demonstrates how to set up a network request to stripe using swift and node.js. In this example, the function is set up on the client side to complete the charge when the customer is ready to check out. The customer enters in their information and a call is made to the firebase back end via the "self.functions.httpsCallable("createStripeCharge"). This triggers the function on the firebase server side in node.js to complete with the parameters passed from the client side through the data dictionary. The firebase function is then performed and sends back the result to the client side. The result will either be a success or print any error that may have happened during the transaction. A successful result will show a message notifying you that the charge was successful. In the event of an unsuccessful charge the error will be printed and tell the user exactly what the issue was.






13 views0 comments

Recent Posts

See All

Comments


bottom of page