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.
559 sites
767 downloads
39 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 Miguel Pa
    Mon, Sep 9, 2019, 5:53 PM
    👏👏👏 Thank you.
  • Picture of Dave Foord
    Thu, Sep 19, 2019, 5:36 PM
    DualCube - Can you please give us some sort of idea of when you think the update will be available, so that we can make appropriate plans please.
  • Picture of Miguel Pa
    Thu, Sep 19, 2019, 6:06 PM

    I also join Dave's request.

    Please. We are looking forward to this update.

    First of all thanks to DualCube.
  • Picture of DualCube Team
    Wed, Sep 25, 2019, 5:51 PM
    Please use https://github.com/LouisNatagora/moodle-enrol_stripepayment

    This is ready for SCA.

    Thank you.
  • Picture of DualCube Team
    Wed, Sep 25, 2019, 5:51 PM
    Please use https://github.com/LouisNatagora/moodle-enrol_stripepayment

    This is ready for SCA.

    Thank you.
  • Picture of Miguel Pa
    Mon, Sep 30, 2019, 2:40 AM
    How can I make it work with Spain cards?
  • Picture of Josick Guermeur
    Tue, Oct 8, 2019, 8:46 PM
    Hello
    I just tested the plugin, works great.
    On the payment receipt sent automatically by Stripe the name of the course bought doesn't appear only "Charge for Course Enrolment Cost. "
    Strpe says it comes from what the plugin sends.
    Is there a way to customize this, ideally to have the name of the course bought?
    Thanks
  • Picture of Josick Guermeur
    Wed, Oct 16, 2019, 4:27 PM
    Hello
    I'd appreciate some answer to my previous message.
    And also another necessary improvement: fields for firsname and lastname as with only name, people put their lastname only
  • Picture of DualCube Team
    Tue, Dec 17, 2019, 2:44 PM
    Dear users,

    We have released the SCA enabled Stripe enrolment plugin version. Please update your plugin and use it.

    Thank you.
  • Picture of Josick Guermeur
    Wed, Dec 18, 2019, 2:06 AM
    Well a little bug at update:
    Installation des mises à jour disponibles
    Téléchargement de enrol_stripepayment ... OK
    Validation de enrol_stripepayment ... Erreur
    [Erreur] Fichier extrait introuvable [{"file":"stripepayment\/.git\/branches\/"}]
    Installation interrompue en raison de l'échec de la validation
  • Picture of DualCube Team
    Wed, Dec 18, 2019, 2:52 PM
    Dear Josick,
    We updated the code again just now. Please upgrade your plugin.

    Thank you.
  • Picture of Alina Gomes
    Fri, Dec 20, 2019, 2:46 PM
    Thanks for sharing this great information.
  • Picture of Sys Admin
    Sat, Jan 18, 2020, 12:53 AM
    Hello,

    We love this plugin however the updated version 2.0 build 2019121200 doesn't seem to be working quite right. There is no "Pay Now" button. At the bottom of the page there is a credit card box with a grey "Submit Payment" button. What happened to the Pay Now button with a dialog box that pops up to put in email address / address and payment info?

    Version 1.0 seems to still work in 3.8 thankfully.
  • Picture of Mared Washweshny
    Sat, Feb 1, 2020, 12:28 PM
    Thanks for the recent update. I noticed that the new update no longer shows the custom instance name . If you have this enabled along with paypal the view looks kinda weird.
    Also is it possible to change the submission button text to "Submit Payment via Stripe" to match with paypal plugin? I couldn't find this string in the language customization stripe file.


    Also with new update payment doesn't go through
    I'm using sandbox and I get "Something else happened, completely unrelated to Stripe"


    Thanks so much
  • Picture of Josick Guermeur
    Sun, Feb 2, 2020, 8:17 PM
    Hello
    Your new update bugs even more than what Mared said.
    1 It doesn't ask for buyer address anymore
    2 After Payment there is a moodle system error message and no feedback that payment has been made
    3 Though the payment is effective and the user registered he receives nothing from stripe and no registration confirmation from moodle.
    I had to uninstall the plugin and reinstall the previous version
    It took you awhile to release this update, I suggest you spend much much more time testing
Please login to post comments