{"repo":"shahbazwork/eCommerceServer","free":true,"listed":false,"github":"https://github.com/shahbazwork/eCommerceServer","clone":"git clone https://github.com/shahbazwork/eCommerceServer.git","description":"E-commerce App built in Swift / SwiftUI using Firebase (Authentication, Hosting, Firestore Database, Storage, Analytics, Remote Config) and Stripe with a server hosted on Render.","language":"JavaScript","stars":17,"topics":["ecommerce","firebase","firebase-auth","firebase-database","javascript","swift","swiftui"],"license":null,"category":"ecommerce","readme_excerpt":"A backend for Stripe's integration into the eCommerce app This project includes a Node.js server script hosting the backend logic for enabling integration of Stripe’s prebuilt payment UI on the client-side. It defines 2 endpoints: - /customers : creates a Stripe Customer object and sends back the Customer's id to the client so that it can be retrieved later on. - /checkout : retrieves the Stripe Customer Object associated with the user, creates an Ephemeral Key for the Customer and creates a Payment Intent with the payment amount (in cents) and the currency. The server then returns the Payment Intent’s client secret, the Ephemeral Key’s secret, the Customer’s id, and the Publishable Key to the app, enabling the client-side to complete the checkout process.","default_branch":null,"files":null,"tree":[],"storefront":"/r/shahbazwork","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shahbazwork/eCommerceServer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}