alexmorrisnz / moodle-paygw_stripe

https://moodle.org/plugins/paygw_stripe
10 stars 12 forks source link

Switching Stripe API keys breaks course enrolment #6

Closed alexmorrisnz closed 2 years ago

alexmorrisnz commented 2 years ago

Hi Alex, I was pleased to see this plugin and although it works perfectly with Stripe's test keys, I get an error after switching to live keys. The payment does go through, but the customer does not get enrolled. Instead, they see this error:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Something else happened, completely unrelated to Stripe{"exception":"invalid_response_exception","errorcode":"invalidresponse","message":"Invalid response value detected"}

Suggestions greatly appreciated, – Robert

Alex, I forgot to add that I am using version 3.11.4, and planning to upgrade to 3.11.5 this week.

Taken from the Moodle plugins directory comments

alexmorrisnz commented 2 years ago

Unable to replicate, which follows my initial assumption that this wasn't possible after the updates made around clearing the db tables.