Paddle.js icon indicating copy to clipboard operation
Paddle.js copied to clipboard

Failed to retrieve JWT

Open kobaidze3 opened this issue 1 year ago • 12 comments

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

kobaidze3 avatar Jul 23 '24 14:07 kobaidze3

Same here.

kirillrocks avatar Aug 01 '24 09:08 kirillrocks

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

ArshErgon avatar Aug 02 '24 05:08 ArshErgon

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

satpalsr avatar Aug 02 '24 17:08 satpalsr

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

tinchx1 avatar Aug 13 '24 10:08 tinchx1

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!

ernestmarcinko avatar Sep 15 '24 11:09 ernestmarcinko

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

andrewtimberlake avatar Sep 27 '24 04:09 andrewtimberlake

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

+1

ernestmarcinko avatar Sep 27 '24 08:09 ernestmarcinko

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 avatar Nov 21 '24 18:11 0guanhua0

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

+1

0guanhua0 avatar Nov 21 '24 18:11 0guanhua0

i feel like we are in the wrong repo

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

0guanhua0 avatar Nov 21 '24 18:11 0guanhua0

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

then how to fix this!

nhtarik123 avatar Jun 30 '25 10:06 nhtarik123

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

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!

THANKS MAN , i was literally hitting my head fixing this issue for more than 3 hours, damn i feel dumb, even Cursor ai could not fix this issue.. GOD BLESS YOU

picsquash-web avatar Oct 29 '25 22:10 picsquash-web