We've moved discussions to Discord

Error when canceling Paddle subscription

Pedro Moura
Hey everyone,

When trying to to cancel any Paddle subscription, I get the following error:
Pay::Paddle::Error: You don't have permission to access this resource

Related info:
  • I'm using the paddle sandbox environment
  • My plan has a trial of 30 days
  • The pause subscription does not work either

Nicolas Metzger
Hi Pedro,
the reason for the error is that JSP currently uses the environment for the Paddle Javascript SDK (Frontend), but the Pay Gem (Backend) does not yet. Therefore, requests for canceling or pausing a subscription are currently always sent to the Paddle production urls. I created a PR for passing the Paddle environment variable in the pay gem. After the PR is merged and JSP is updated, the error should be gone. 
Notifications
You’re not receiving notifications from this thread.