If you are getting this kind of error from trying to get the portal URL:
event loop error: Error: Deno.core.runMicrotasks() is not supported in this environment
at core.runMicrotasks (https://deno.land/std@0.177.1/node/_core.ts:23:11)
...
It is probably due to the error below, which is not propagated back correctly to the API, and took me a while to figure this out:
Error: No configuration provided and your test mode default configuration has not been created. Provide a configuration or create your default by saving your customer portal settings in test mode at https://dashboard.stripe.com/test/settings/billing/portal.
You basically have to enable billing portal in your stripe, which make sense but wasn't written anywhere!
love,
Adam
If you are getting this kind of error from trying to get the portal URL:
It is probably due to the error below, which is not propagated back correctly to the API, and took me a while to figure this out:
You basically have to enable billing portal in your stripe, which make sense but wasn't written anywhere!
love,
Adam