Run Time 6:02Free
In this opening episode, we'll take things easy and browse the Stripe dashboard, as we review such things as API keys, plans, and coupons. To finish up, we'll begin the inital prep work of installing Stripe's PHP package through Composer.
Run Time 8:23
Let's next move on to storing the test and live versions of our API keys within a configuration file. We'll also discuss forms, and why it's so important to never include the
name attribute for financial-specific inputs.
Run Time 9:14
Run Time 14:22
We're finally at a point where we can charge the user, using the unique token that was returned to us from the AJAX request.
Run Time 9:29
While one-time charges have their place, often, you'll find that it's preferable to instead create customers. This way, in the future, should you need to bill the user again, you only need to reference their customer id.
Download the source for this series from GitHub.