Closed jimcrammond closed 1 year ago
I got further by enabling web services in "site administration->advanced settings" and then enabling the "rest" protocol. Now it fails with the exception of missing token. Not clear how to create the required token.
It seems there is a set of new configuration steps required with 3.3.4 that are not documented.
You need to create Token for stripe : https://jhn4wdmbd4.vmaker.com/record/UMr80J688kjRahxg
Kindly add this and check again.
Please do keep us posted.
This was what I was missing, but I then ran into a couple of bugs.
This patch addresses the issues I found in the success_stripe_url function in the previous comment.
Others have reported this issue too. On attempting to return from the stripe payment web page, an attempt to redirect to/webservice/rest/server.php?wstoken=text&wsfunction=moodle_stripepayment_success_stripe_url&moodlewsrestformat=json&session_id=cs_test_a1WXI4rp83Ci8EnAFYgWPP497gVJo4I4EGA7r9NNJ54LDVT6CbOw1&courseid=7&couponid=TEST2&user_id=357&instance_id=23
is made which should run the stripepayment_success_stripe_url to finish the enrolment. But this instead produces an HTTP 403 error.