Enrolment: Stripe Payment with SCA and Coupon

enrol_stripepayment
Maintained by Picture of DualCube TeamDualCube Team
Now avail the much-awaited coupon functionality while enrolling students in Moodle courses using a Stripe payment gateway for paid courses with Strong customer authentication (SCA). Stripe Receipt sent to customers for any successful transaction. This plugin will help the admins and webmasters to offer their students a percent-off or amount-off discount for the paid courses. This plugin helps admins and webmasters use Stripe as the payment gateway.
745 sites
863 downloads
42 fans
Current versions available: 2

Stripe Payment: 

Introducing the newest offering from Team Dualcube: Stripe Payment!

Now avail the much-awaited coupon functionality while enrolling students in Moodle courses using Stripe payment gateway for paid courses with Strong customer authentication (SCA).

This plugin will help the admins and webmasters to offer their students a percent-off or amount-off discount for the paid courses.


Stripe Payment:


1. Registered users can login to the Moodle site and happily apply the promo codes for a discount before payment. On successful payment, they can access the course.

2. Admins and Webmasters, now, can create, manage and keep track of all promotional codes directly in their Stripe dashboard.

3. Strong customer authentication (SCA) implemented with 4 layers of complex security to comply with EU Revised Directive on Payment Services (PSD2) on payment service providers within the European Economic Area.

4. The first of it's kind to use Payment intent method for Stripe-coupon. 

5. Works with all stable versions of Moodle till v 3.8.1

6. Latest Stripe SDK


Stripe Payment Documentation:



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 Guidance : 

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.

Adding coupons:

Go to your Stripe Dashboard >  Billing > Coupons > Create a coupon.

Type in the coupon’s name: it can be anything and for your reference only.
Type in the Coupon’s ID : This is the Coupon code which your students will need to enter if they want to avail the discount.

Choose Coupon Type: 
1. Percentage discount : offers % off on the course price 
2. Fixed amount discount : Offers a fixed amount off on the course price.

Duration: For duration, when using the value repeating, also specify duration in months as the number of months for which the coupon should repeatedly apply. Otherwise the coupon can be set to apply only to a single invoice or to them all.

Redemption : The max_redemptions and redeem_by values apply to the coupon across every customer you have. For example, you can restrict a coupon to the first 50 customers that use it, or you can make a coupon expire by a certain date. If you do the latter, this only impacts when the coupon can be applied to a customer. If you set a coupon to last forever when used by a customer, but have it expire on January 1st, any customer given that coupon will have that coupon’s discount forever, but no new customers can apply the coupon after January 1st.

If a coupon has a max_redemptions value of 50, it can only be applied among all your customers a total of 50 times, although there’s nothing preventing a single customer from using it multiple times. (You can always use logic on your end to prevent that from occurring.)


 

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 of the discounted price. 


Screenshots

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

Contributors

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

Comments RSS

Comments

  • Picture of Rekha C
    Thu, Jul 13, 2017, 1:54 PM
    1) Unable to install-" There is a request to install plugin Stripe Payment (enrol_stripepayment) version 2015112804 from the Moodle Plugins directory on this site. However, the plugin installation pre-check failed (reason code: remoteunavailable)."

    2) Is the plugin available for INR Indian Rupees also?, for use in India?
  • Picture of Rekha C
    Thu, Jul 13, 2017, 1:58 PM
    on moodle 3.2 version..
  • Picture of DualCube Team
    Fri, Jul 14, 2017, 3:12 PM
    Hi Rekha,

    Please find the below response as per your query-

    Your point: 1) Unable to install-" There is a request to install plugin Stripe Payment (enrol_stripepayment) version 2015112804 from the Moodle plugins directory on this site. However, the plugin installation pre-check failed (reason code: remoteunavailable)."

    >>May be your PHP max_upload settings too small. Please visit these links:
    https://docs.moodle.org/32/en/File_upload_size
    https://docs.moodle.org/32/en/Installing_plugins


    Your point: 2) Is the plugin available for INR Indian Rupees also?, for use in India?

    >>Sorry, Stripe does not support INR Indian Rupees.

    Please do let me know for any further clarification.


    Thanks and Regards,
    Arindam
  • Picture of Armin Ysl
    Sun, Jul 16, 2017, 9:48 PM
    Hello everybody,

    Is it possible to adapt the text to the multi-content filter of moodle or to translate it into another language (Danish)?

    We would also like to change the texts. In the heading, change the word moodle to "eAcedemy D".

    It is possible to hide the function remember me.
  • Picture of DualCube Team
    Tue, Jul 18, 2017, 2:55 PM
    Hi Armin,

    Please find the below response as per your requirement-

    Your point: Is it possible to adapt the text to the multi-content filter of moodle or to
    translate it into another language (Danish)?

    >> Can you please elaborate which text you are referring to

    We would also like to change the texts. In the heading, change the word moodle
    to "eAcedemy D".

    >>If you want to change the text in the heading of the popup, please go to "your moodle directory"/enrol/stripepayment/enrol.html file from backend then edit the "data-name".

    It is possible to hide the function remember me.

    >>Yes, it's possible to hide, please go to enrol.html file from backend then add the following code into "script" tag.
    data-allow-remember-me="false"

    Hope the above helps, looking forward to your response.

    Thanks and Regards,
    Arindam
  • Picture of Armin Ysl
    Tue, Jul 18, 2017, 9:08 PM
    1. I mean the first text

    eg.
    This course requires a payment for entry.

    Stripe Payment (Student)

    Cost: EUR 2.99



    2. How can the boutton be customized? Best to the theme
  • Picture of Armin Ysl
    Wed, Jul 19, 2017, 2:48 PM
    Can I contact you about an instant massage?
  • Picture of DualCube Team
    Thu, Jul 20, 2017, 7:37 PM
    Hi Armin,

    Please find the response below-

    >> It is possible to translate it into another language, except "EUR 2.99" with the help of "language menu" and "Multi-Language Content" of Moodle.
    >>You can add css with the respect of the button.

    Hope this caters your concern. Please do let me know for any further queries.

    Thanks and Regards,
    Arindam
  • Picture of Armin Ysl
    Thu, Jul 20, 2017, 11:59 PM
    1. Can you give me your contact data. I would like to discuss something with you
    arminysl@gmail.com

    2. Unfortunately this does not work:

    It is possible to hide the function remember me.

    >>Yes, it's possible to hide, please go to enrol.html file from backend then add the following code into "script" tag.
    data-allow-remember-me="false"

  • Picture of DualCube Team
    Fri, Jul 21, 2017, 2:21 PM
    Hi Armin,

    Please check you email, you must have received a mail from admin@dualcube.com
    Look forward to your response.

    Thanks and Regards,
    Arindam
  • Picture of sayed mojtaba Ashkufaraz
    Wed, Aug 9, 2017, 3:47 PM
    Hi
    i have use moodle 3.3+ (Build: 20170608)
    In "Course administration" does not user section for select user enrol method
    please help me

    course setting Image:



  • Picture of DualCube Team
    Thu, Aug 10, 2017, 2:12 PM
    Hi Sayed,

    Our plugin is enrollment plugin for paid courses and not for individual section/topic/activity. In near future if we develop this for Stripe, then we will inform you.

    Thanks and Regards,
    Arindam
  • Picture of RevengeVersion RankRemo
    Fri, Aug 11, 2017, 1:12 AM
    Stripe's meticulously-designed APIs and unmatched functionality help you .Stripe is a suite of APIs that powers commerce for businesses of all sizes import it via usps
  • Picture of Pc-Díez E.
    Tue, Aug 29, 2017, 11:29 PM
    Hi. The first thing I want is to thank you for the realization of the Stripe plugin. Really thank you very much. Without people like you, none of this would be possible. I installed the plugin and it works perfect. I would like to translate to Spanish the buttons and textso of the payment windows. Please can you tell me how I do it.
  • Picture of DualCube Team
    Fri, Sep 1, 2017, 2:32 PM
    Hi! Pc-Diez E
    Thanks a lot for the motivation, much-appreciated.

    Please go to Home / ► Site administration / ► Language / ► Language customisation / ► select your language and load the language pack / ► click the "Continue" button / ► Show strings of these components / ►please select "moodle.php", "enrol.php", ''enrol_stripepayment.php" then click on the "Show strings" button / ►To change the string, write your text into the textarea to the right side then click on the "Save changes to the language pack" button.

    Note: To change the button text "Pay with Card" required customization and it will take extra effort.

    Hope the above works for you.

    Cheers!
    Arindam
Please login to post comments