How to add query parameters to Polar checkout URLs?

Hey there, following https://docs.polar.sh/features/checkout/links#query-parameters you can add parameters like discount_code to the checkout url and have them prefilled in the UI. – That does not seem to work with the Better Auth plugin. Do I miss anything?

I've tried:

https://localhost:3000/api/auth/checkout/pro-annual?discount_code=X
https://localhost:3000/api/auth/checkout/pro-annual?discountCode=X

– Without any success.
Polar
Sell your digital products with ease by sharing a checkout link to select products
Was this page helpful?