How to integrate the Stripe payment gateway with your Graphy course platform using API and Webhook??

Created by Ayush Sharma, Modified on Sat, 19 Apr at 11:54 AM by Ayush Sharma

This is a step-by-step guide to integrate Stripe as a payment gateway on your Graphy course platform.


This guide specifically talks about how to integrate Stripe. Stripe is especially helpful in collecting online payments from the international audience.


Settings within your Course Platform


Go to your Dashboard > SETTINGS > Payment.

 

 


Under the "Payment Gateway" select "Stripe". If you want to charge tax, click on "GST", "VAT", or click on "No Tax".  Now, specify the percentage charged under "Default Tax Rate".  


Finally, click on "Connect".

 

 

Now, scroll down and fill in the "Payment Gateway Details". You need to fill in a few details that you would get from your Stripe account.


 


Sign up with Stripe


Open a new tab & sign up with Stripe if you haven't already. 


You would automatically land on https://dashboard.stripe.com/ 


Before proceeding ahead, please make sure your Test mode toggle is disabled.

 

 

Please note that these steps would work properly if your account activation is complete. Enter all the required details to enable your account activation. If you are unsure about how to go about it, just click in "viewing test data" & the next steps would be clear.

 

On your dashboard, go to the menu bar at the left. Go to Developer > API Keys


 

 

The first one you would find is "Stripe Publishable Key". 


 

 

Next up, click on "Reveal Live Key" to find the Stripe Secret Key. 


 

 


Secret Key would be revealed. Copy & keep them with you. Click on Done. 


 

mceclip6.png

 


In the menu, just below the API Key, click on "Webhooks". Now, click on "Create an event distribution". 


 

 

Click on 'Add Endpoint'.




You need to paste your Endpoint URL. You would get it from your payment gateway page that you left open in the previous tab.  


 

 


Copy the Endpoint URL & come back to the Stripe tab. Paste the Endpoint URL. 


Under description, you can either leave it blank or write anything for your reference. 


 

 

You need to select the following events:

  • checkout.session.completed
  • invoice.paid
  • invoice.payment_failed

After the above settings, click on "Add Endpoint".  


 

 

Now, click on “Click to reveal” under “Signing Secret”.  Copy the Signing secret. 


 

Come back to the Stripe integration page that you left open. 


Here, paste all the three pieces of information & click on "Save". 

 

 

Your Stripe integration is complete.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article