Enrolment: Stripe Payment

Maintained by Picture of DualCube Team DualCube Team
Enrolment in Moodle using Stripe payment gateway for paid courses This plugin helps admins and webmasters use Stripe as the payment gateway. Stripe is one of the populer payment gateways.
264 sites
28 fans

Enrolment in Moodle using Stripe payment gateway for paid courses

This plugin helps admins and webmasters use Stripe as the payment gateway. Stripe is one of the populer payment gateways. This plugin has all the settings for development as well as for production usage. Its easy to install, set up and effective.

Creating Merchant Account :

1) Create account at https://stripe.com.

2) Complete your merchant profile details from https://dashboard.stripe.com/account.

3) Now set up secret key and publishers key at https://dashboard.stripe.com/account/apikeys.

4) For test mode use test api keys and for live mode use live api keys.

Now you are done with merchant account set up.

Installation Guidence : 

Login to your moodle site as an “admin user” and follow the steps.

1) Upload the zip package from Site administration > Plugins > Install plugins. Choose Plugin type 'Enrolment method (enrol)'. Upload the ZIP package, check the acknowledgement and install.

2) Go to Enrolments > Manage enrol plugins > Enable 'Stripe' from list

3) Click 'Settings' which will lead to the settings page of the plugin

4) Provide merchant credentials for Stripe. Note that, you will get all the details from your merchant account. Now select the checkbox as per requirement. Save the settings.

5) Select any course from course listing page.

6) Go to Course administration > Users > Enrolment methods > Add method 'Stripe' from the dropdown. Set 'Custom instance name', 'Enrol cost' etc and add the method.

This completes all the steps from the administrator end. Now registered users can login to the Moodle site and view the course after a successful payment.
FAQ. How to change the button text "Pay with Card"?
Ans. Please go to "Your moodle directory"/enrol/stripepayment/enrol.html file from backend, then add the (data-label="your text") into <script> tag.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4


Picture of DualCube Team
DualCube Team (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of DualCube Team
    Tue, 10 Jul 2018, 9:42 PM
    Dear Raymond,

    Thanks for reaching out to us. We have updated the plugin. Please use the latest plugin from here.
  • Picture of Anne Laure Guin alg
    Sun, 22 Jul 2018, 12:19 AM

    thank you for this plugin. I have installed the plugin and set up my Stripe account

    I have tried to pay on my moodle website and once the transaction has been done, a blank webpage appears with the following message:

    Network communication with Stripe failed

    But if I check on Stripe dashboard, it is written that the request is successful.

    Can you please help me find out what is wrong?
    Thank you

  • Picture of DualCube Team
    Mon, 23 Jul 2018, 1:41 PM
    Dear Anne,
    Thanks for reaching out to us. Please turn on debugging on your Moodle site (Site Administration> Development> Debug) and see if there are any error notices. If there is any, please let us know. You can also send a screenshot at admin@dualcube.com
    Thank you.

  • Picture of wl chong
    Sun, 21 Oct 2018, 5:22 PM
    Hi, I got the following error on the moodle v3.5.2 using the latest plugin.

    XML database file errors found

    More information about this error
    Debug info: Errors found in XMLDB file: PATH attribute does not match file directory: enrol/stripepayment/db
    Error code: ddlxmlfileerror
    Stack trace:
    line 352 of /lib/ddl/database_manager.php: ddl_exception thrown
    line 368 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
    line 594 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
    line 1857 of /lib/upgradelib.php: call to upgrade_plugins()
    line 694 of /admin/index.php: call to upgrade_noncore()
  • Picture of ruthvik reddy
    Sat, 3 Nov 2018, 3:46 AM
    i am getting permission error when i am installing stripe from moodle directory.
    Message is (/error /local plugins /exc permission denied) .please help.
  • Picture of DualCube Team
    Mon, 5 Nov 2018, 2:32 PM
    Dear Ruthvik.

    Please change them to the right permission. The directory where, the plugin is , should have a permission of value 755 and the file permission should be 644.

    Thank you.
  • Picture of Robert Vogel
    Fri, 4 Jan 2019, 10:38 PM
    Hello Team,
    I am using Moodle 3.6 and get an http 500 error POST /enrol/stripepayment/charge.php HTTP/1.0
    Permissive is set to 755 for the directory and 644 for the files.
    Form to enter the credit card credentials came up, I got a green mark and the the error.
    User is not enrolled, transaction is not performed.
    Perhaps you have an idea.
    Best regards
  • Picture of DualCube Team
    Mon, 7 Jan 2019, 8:38 PM
    Dear Robert,

    We have just uploaded a new version which is Moodle 3.6 compatible. Please download and install the new version.
    Thank you.
  • Picture of Robert Vogel
    Tue, 8 Jan 2019, 1:39 AM
    Hello Team,
    That was fast, thanks a lot. I tested a second ago and got the following error message:
    Fehler: Argument 1 passed to message_send() must be an instance of core\message\message, instance of stdClass given, called in [dirroot]/enrol/stripepayment/charge.php on line 237
    Any ideas?
    Thanks for your feedback
  • Picture of DualCube Team
    Tue, 8 Jan 2019, 3:43 PM
    Dear Robert,

    We tested again after you reported, but it worked flawlessly on our server. Can you please test it again?

  • Picture of Robert Vogel
    Tue, 8 Jan 2019, 5:00 PM
    Hello Team,
    if I uncheck "Notify Admins" than it is working. Otherwise I got the error message like above.
    For me that is fine, I do not need the admin notification.
  • Picture of DualCube Team
    Tue, 8 Jan 2019, 5:31 PM
    Thanks. We uploaded a new version again. Please download and use that.

    Thank you.
  • Picture of Tommy Pazhoum
    Wed, 9 Jan 2019, 1:03 PM
    Dear Team,
    Thank you for such a great work. I'd like to know how I can add the course name in the receipt sent to student's email.
    I look forward to receiving your comment.
    Thank you
  • Picture of DualCube Team
    Fri, 11 Jan 2019, 6:43 PM
    Dear Tommy,
    Stripe API does not provide such option to pass the course name. So this is not possible.
    Thank you.
1 2 3 4 5 6 7 8 9
Please login to post comments