Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paddle - The checkout id must be a valid checkout id

Tags:

next.js

paddle

I'm trying to test paddle subscriptions on localhost. When I use the product id and vendor id from an example git repo everything works.

When I use my own vendor id and product id (plan id) I get a 400 error:

{"errors":[{"status":400,"code":"validation","details":"The checkout id must be a valid checkout id.","source":{"pointer":"\/checkout_id"}}]}

I have created a subscription on the portal which gives me a'Plan Id'. Is the plan id the wrong id to be using here?

Paddle.Checkout.open({ product: 752932 });
like image 771
Starchand Avatar asked Oct 17 '25 22:10

Starchand


1 Answers

I had the exact same setup and symptoms. I assume you're using the Paddle sandbox since you're testing on localhost. What helped me is that I had to add

Paddle.Environment.set('sandbox')

right above the

Paddle.Setup({ vendor: xxxx })

This did it for me, but annoyingly enough wasn't well documented at all so it took a bunch of digging.

Hope this helps you too!

like image 61
user1507558 Avatar answered Oct 19 '25 13:10

user1507558



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!