Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to retrieve JWT #520

Open
kobaidze3 opened this issue Jul 23, 2024 · 10 comments
Open

Failed to retrieve JWT #520

kobaidze3 opened this issue Jul 23, 2024 · 10 comments

Comments

@kobaidze3
Copy link

I am getting this error when creating a checkout -- what causes this?

@kirillrocks
Copy link

Same here.

@ArshErgon
Copy link

I'm also getting this but only on test mode.

@satpalsr
Copy link

satpalsr commented Aug 2, 2024

I was getting some here. Fix it by verifying that you are are passing correct client token & seller id.

@tinchx1
Copy link

tinchx1 commented Aug 13, 2024

This error pops up when you're trying to create a checkout using production data instead of the testing data from the sandbox. To fix it, just make sure you're using the right client token and seller ID from the Paddle sandbox environment—not the production ones.

You can grab the sandbox credentials by logging in here:

https://sandbox-login.paddle.com/login?s=Monolith&subject_type=user

@ernestmarcinko
Copy link

Hi,

Had the same issue with paddle.js v2. The solution is that after the Initialize method, the Paddle.Environment.set('sandbox'); also has to be called, otherwise it will assue it's live:

  Paddle.Initialize({ 
    token: 'test_XXXXXXXXXXX'
  });
  Paddle.Environment.set('sandbox');

Hope this helps!

@andrewtimberlake
Copy link

It would be really helpful if Paddle.Initialize did this automatically when using a 'test_XXXXXXX' token

@ernestmarcinko
Copy link

It would be really helpful if Paddle.Initialize did this automatically when using a 'test_XXXXXXX' token

+1

@0guanhua0
Copy link

Hi,

Had the same issue with paddle.js v2. The solution is that after the Initialize method, the Paddle.Environment.set('sandbox'); also has to be called, otherwise it will assue it's live:

  Paddle.Initialize({ 
    token: 'test_XXXXXXXXXXX'
  });
  Paddle.Environment.set('sandbox');

Hope this helps!

thx

@0guanhua0
Copy link

It would be really helpful if Paddle.Initialize did this automatically when using a 'test_XXXXXXX' token

+1

@0guanhua0
Copy link

i feel like we are in the wrong repo

https://github.com/PaddleHQ/paddle-js-wrapper
should be this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants