dualcube / moodle-enrol_stripepayment

Moodle Stripe Payment Collector
16 stars 27 forks source link

invalid token error after payment #120

Closed jshrek closed 1 year ago

jshrek commented 1 year ago

After payment is successful, I get the following error message when it tries to return to my site: {"exception":"moodle_exception","errorcode":"invalidtoken","message":"Invalid token - token not found"}

I checked in Stripe and I can see a success for the payment.

jshrek commented 1 year ago

After further investigation, I found the solution here: https://dualcube.com/docs/stripe-payment-with-sca-and-coupon/

It has to do with these two instructions:

Note that it was unclear to me that this was a REQUIRED step from the settings page.

SUGGESTION: Reword this: "To make Stripe callback works, kindly enable Moodle REST protocol on your site[ from here]. Also kindly create your token[ from here]" To something like this: "REQUIRED: To make Stripe callback work, you must enable Moodle REST protocol on your site[ from here]. You must also create a token with Administrator privilege [ from here]."