polar icon indicating copy to clipboard operation
polar copied to clipboard

Allow to override prices at checkout

Open frankie567 opened this issue 1 week ago • 0 comments
trafficstars

For advanced use cases, it has become clear that some merchants need to be able to set a completely dynamic pricing set when creating the Checkout Session.

Basically, we would allow to pass a set of prices on the Checkout session. Those prices would be created in database like the other prices, but should be marked specifically so they don't appear as the "true" prices of the product.

Proposed API:

{
    "products": ["PRODUCT_ID_1", "PRODUCT_ID_2"],
    "prices": {
        "PRODUCT_ID_1": [
            {
                "type": "fixed",
                "amount": 1000,
                "currency": "usd",
            }
        ]
    }
}

frankie567 avatar Nov 13 '25 10:11 frankie567