Hi. I think I found part of the issue. I was double checking settings and found that my token was missing. I created a new one and saved that in the plugin settings. Purchases now result in enrollment.
But I’m now finding that when testing and I submit a purchase, I don’t get redirected to the course page when purchase is complete. After clicking the final button to complete a purchase, the page loads for a very long time then get redirected to the Moodle homepage. Coupons work as expected, though the same redirect issue occurs if I use a 100% off coupon and click “Enrol Now” (instead of purchase). When going back to the course, though, I’m enrolled.
I tried uninstalling and reinstalling the plugin, creating a new token, rolling the publishable key and creating a new secret key in Stripe, but results are the same.