dualcube / moodle-enrol_stripepayment

Moodle Stripe Payment Collector
16 stars 27 forks source link

Free enrolment is broken in 3.4.1 (coupon id and user id arguments swapped) #125

Closed jimcrammond closed 1 year ago

jimcrammond commented 1 year ago

Apply a 100% discount coupon. Then hit the Enrol Now button.

The UI appears to do nothing. A message is sent to admin like this: STRIPE PAYMENT ERROR: Not a valid user id!

In the 3.4.1 release the arguments to the call stripepayment_free_enrolsettings in amd/src/stripe_payment.js are not aligned with the function in externallib.php as the user_id and coupon_id are swapped.