Working with Stripe and Node JS to build full stack applications is awesome as it enables you to expand your learning curve and explore JavaScript using a different approach. To confirm this, below is a screenshot from my Stripe account showing the purchase:īuilding on our current app, we can explore the possibility of returning data on multiple gift cards via Reloadly’s Get all products gift card endpoint and paying for them via different checkout sessions for each respective product. In the above video, we can see how our app works when I purchased a CALL OF DUTY gift card from the data rendered from Reloadly’s gift card API, completed the order via Stripe’s checkout session and was redirected to Reloadly’s homepage as proof that my order was successfully completed. Let’s launch the app and attempt to make a gift card purchase: As specified in the server, our app’s development environment should be live on port 5000. Looks like we’re good to go! Let’s save all our files and in our terminal, navigate to our app’s folder and run the npm run dev command. If you haven’t done that, you can do so hereīefore installing dependencies, create your app by kickstarting the Svelte create-app command in your terminal:Įnter fullscreen mode Exit fullscreen mode Note: A basic prerequisite for this tutorial is to have Node installed in your machine. This gets auto-installed when you create a new Svelte app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |