NuroDev / lemonsqueezy.ts

🍋 JavaScript / TypeScript SDK for the Lemon Squeezy API
https://paka.dev/npm/lemonsqueezy.ts
MIT License
159 stars 16 forks source link

createCheckout giving 400 bad request #15

Open amosbastian opened 1 year ago

amosbastian commented 1 year ago

I am trying to create a checkout, but can't pass the store or variant as per the documentation

Argument of type '{ store: string; }' is not assignable to parameter of type 'CreateCheckoutOptions'.
  Object literal may only specify known properties, and 'store' does not exist in type 'CreateCheckoutOptions'.

I am using this version:

"lemonsqueezy.ts": "^0.1.6",

If I force the type as any and call it with the store and variant, then it results in a 400 error