We currently do not have a way to run the purchase/subscription workflow in sandbox environments.
However, that should not prevent you from accessing your extension. It seems like you've encounted a bug in the library code. If you could submit a bug ticket through the developer portal, we would appreciate it.
As a temporary workaround, you can run the following command in your dev environment. This will disable all subscription checks in your sandbox.
q2 db add_vendor_configs [extension_name] _overrides '{ "ignore_subscription": true }' String