Configure Stripe course payment method
- Configure the Stripe Enrolment plugin
- Configure the course enrolment and payment settings
- Testing the configuration
Configure the Stripe Enrolment plugin
Administration -> Plugins -> Enrolments -> Manage enrol plugins
Enable the plugin
Select plugin settings
Locate either your test or production stripe secret key and publishable key, you can find this within your stripe account
Copy and paste the keys into your stripe enrolment settings
Select the enrolment expiration action
- Keep user enrolled
- Disable course enrolment and remove roles
- Unenrol user from course
Create your web service token
Click "Create token"
- Enter the token name
- Select a user with administrator privileges
- Select "moodle_enrol_stripepayment"
- Configure or disable "Valid Until"
- Click "Save Changes"
Copy the web service token to the clipboard
Paste the token into the "User Token" field
Click "Save Changes"
Configure the course enrolment and payment settings
Locate the course you require payment for and turn on "Edit Mode"
Select "Participants"
Select "Enrolment methods"
Add "Stripe Payment"
Complete the course enrolment Stripe settings
- Enter the instance name
- Enable Stripe enrolments for this course
- Set the course cost
- Select the preferred currency
- Select the user role type
- Enter the maximum number of enrolled users (Leave blank for unlimited)
- Select the enrolment duration (Example, Give the user a set number of days to complete the course)
- Click "Add Method"
Testing the configuration
Login as a standard user or student account and visit the course
Click "Buy Now" to purchase access the course
Complete the purchase to gain access to the course
Looking to optimise your Learning Management System? EssingtonITS offers tailored solutions to enhance your e-learning environment. Visit EssingtonITS.co.uk for expert IT services, or explore our dedicated hosting and support for Moodle at myelms.co.uk. Let us help you create a seamless and efficient learning experience.
person people found this useful.