![]() Here’s how the files for our simple project will be organized: * views □ - Handles our front-end code, must be named views for `ejs` to work. You’ll want to use the test keys at first. Those are what we’ll need to have access the data later. When on the Dashboard, the API Keys under Developers, you’ll find both a Publishable key and a Secret Key. Now over on the Stripe website you’ll need to create an account. $ npm i body-parser ejs express nodemon stripe Body-parser will allow us to convert our form data into something more useful, ejs will let us render our success page from our server, express for the server itself, nodemon to reload our server on save, and finally stripe to give us access to all the more interesting functionality we want with the Stripe API. ![]() ![]() We’re going to need quite a few things to get this set up. Understanding basic promises and how to set up an Express server are necessary. In this article we’ll be looking into using Stripe’s Charges API to make a basic donation app where we can create customers and submit payments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |