Integrating with Stripe for eCommerce

Be sure to review our overview of eCommerce Setup guides: Introduction to eCommerce

Note

Academy of Mine does not directly collect payments. In order to collect payments, you will need to sign up with a third party payment gateway, such as Stripe, then connect it with the Academy of Mine platform using the API credentials provided by the payment gateway. Before proceeding with this guide, you must sign up for a Stripe account.

Stripe is an online payment processing platform that allows businesses to send and receive payments over the internet. It is fully integrated into Academy of Mine's checkout process. Payments made in Academy of Mine will be passed on to Stripe for collection.

This guide will help you complete your Stripe integration, set up testing, and ultimately go live to collect real payments. 

In this article

Setting Up the Stripe Integration

1

eCommerce settings can be found in the dashboard at eCommerce > Settings > General

2

eCommerce integrations can be found in the dashboard at eCommerce > Settings > Payment

3

Select Manage in the Stripe section to enter the Stripe Settings page.

(image altered for security purposes)

Create a Title

The title you add will appear on the Payment Details section of your checkout page.

Add Your API Credentials

Warning

Stripe has two sets of API keys, one for testing and one for real payments. You must use the test keys first, and once you are ready for real payments, you will swap the test keys for the live keys.

1

To begin using your Stripe integration, you'll want to use the Test version of your Publishable Key and Secret Key. 

The test version of your API keys will begin with pk_test_ and sk_test_ and will prevent you from running a real payment and charging a credit card.

2

In your Stripe account dashboard, head to Developers > API Keys.

3

Copy the test Publishable Key and Secret Key. 

(image altered for security purposes)

4

Back in Academy of Mine, paste in your API keys.

(image altered for security purposes)

Enable Stripe

Before you begin testing in your account, you must enable Stripe. If Stripe is not enabled, your Academy of Mine account will not connect with your Stripe account.

Begin Testing

Warning

You cannot use a live credit card during testing. You must use Stripe's test credit card numbers. View this Stripe testing guide for a list of transaction amounts and credit card numbers to complete your testing.

1

Once you have successfully added your test Publishable Key and test Secret Key, you are ready to attempt test purchases of your Products.

2

When checking out and placing an order, it is important that you use a test credit card number provided by Stripe, rather than a live credit card.

For example, when testing a successful transaction with Visa you will use the card number 4242 4242 4242 4242, a CVC of any 3 digits, and an expiration date of any future date.

Ready for Production

Warning

When using Stripe's live API keys, real cards must be used, and real payments will be processed.

If your tests have completed successfully and you are ready to accept real payments, there are two important steps to take.

1

You must replace your test Publishable Key and test Secret Key with Stripe's live Publishable Key and live Secret Key.

The live versions of the API keys will begin with pk_live_ and sk_live_ and will allow for real payments.

2

In the Stripe dashboard, head to Developers > API Keys.

3

Toggle the Viewing Test Data settings to view the live API keys.

4

Copy the new Publishable Key and Secret Key.

(image altered for security purposes)

5

Back in Academy of Mine, replace the old test keys with the new live keys.

(image altered for security purposes)

6

Enable the setting for Ready for Production. This is the final safety in place to prevent a real payment. Enabling it will officially turn on real payments.

7

Optional step: test real payments in your Academy of Mine account. Create low value transactions to test, for example a simple Product for $1. You must use a real payment method for these tests. 

Next Step

Up next, you'll learn about creating Products to sell your Courses: