Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On Nov. 10th 2016

How to Accept Payments: Testing Against Stripe's API

Episode 12 Run Time 14:32

Download
In certain situations, it's paramount that we physically tough Stripe's API to ensure that our code does in fact work as expected. In this episode, let's verify that our Subscription class does make a Stripe customer, associates them with the proper plan, and activates their account in our local database.