1. Home
  2. Docs
  3. Settings
  4. Payments
  5. How to Integrate Stripe with Klasio to Receive Payments

How to Integrate Stripe with Klasio to Receive Payments

Klasio makes it easy to accept payments by integrating seamlessly with Stripe, one of the most trusted and secure payment gateways. With this integration, you can effortlessly collect payments for your online courses.

Before you get started, make sure to check Stripe’s list of supported countries and currencies to confirm it’s available in your region.

1. From the admin dashboard, go to Settings and then click Payments

Klasio admin dashboard with the Payments tab under Settings menu in highlight

2. Next, locate the Stripe widget and click on Settings

This image is a screenshot of Klasio Payments integrations window under Settings menu with the Settings button on the Stripe widget highlighted.

3. Type in the merchant name, add anything important in the description box if you want.

Stripe setup pop up with the merchant name and description insertion option in highlight.

4. Next you’ll be asked to insert your Publishable Key, Secret Key and Webhook secret.

Stripe setup pop up with the option to insert Publishable key, Secret Key and Webhook secret in highlight.

In order to get all these keys, you’ll be required to access your Stripe account and collect the key from there.

Payment Environment

Stripe has two modes for generating such keys. Start by choosing either “Test” or “Live”, depending on what you’re doing. Use Test mode to simulate payments, or Live mode if you’re ready to accept real transactions in your production environment.

How to Get PayPal Sandbox/Production Public & Secret Key

a. To get your secret key, log in to your Stripe account and head to the Developer Dashboard. On the lower-left menu, click on Developers, then choose API keys.

Stripe dashboard with the Developer menu in highlight.

b. Here, you’ll find both the publishable key and the secret key

Stripe developer dashboard with Publishable Key and Secret Key in highlight.

Just a heads-up: Test secret keys will start with sk_test, while Live keys will begin with sk_live — so you can easily tell them apart.

c. Copy the Publishable key and Secret key and simply paste them into the respective fields in Klasio Stripe setup pop up.

Stripe Webhook Signature Key

a. From the admin dashboard, click on Developers and then click Webhooks

Stripe dashboard with Webhooks tab under developer menu in highlight.

b. Then, click on Add Destination.

Stripe webhook generation window with Add Destination button in highlight.

c. Choose the specific events you want to be notified about. For things to work smoothly, make sure you include these events:

1. payment_intent.payment_failed

2. charge.updated

3. payment_intent.canceled

Stripe webhook setup window with three specific events in highlight.

d. Then, click on Continue and select Webhook endpoint on the following step to add your webhook endpoint’s HTTPS URL.

Stripe webhook setub wizard with the Webhook endpoint button in highlight.

e. Here, you have to enter the Endpoint URL

Stripe webhook setup window with Endpoint url insertion option in highlight.

f. You can collect your webhook endpoint URL given from the Klasio Stripe set up pop up. Copy and paste that and then click on Create destination to find your ‘Signing secret’ key. 

Klasio Stripe setup pop up with Webhook url in highlight.

g. Next, copy the Webhook Secret Key from Stripe.

Stripe webhook setup window with Signing secret in highlight.

h. Then paste it into the Webhook Signature Key field inside Klasio Stripe setup pop up. After that, turn on the toggle to enable Stripe and click Save to complete the setup.

Klasio Stripe setup pop up with publishable key, secret key and webhook secret inserted.

i. Stripe setup is complete for your academy, and you’ll now see the ‘Active’ status on the Stripe integration panel

Klasio payments setup window with Stripe Active status in highlight.

You’re now ready to receive payments using Stripe from your course website.

How can we help?