Support either product_price_id
or product_id
in the following endpoints.
POST /v1/checkouts/custom/
POST /v1/checkout-links/
In case product_id
is provided, the endpoints should default to the currently active product_price_id
and first one in case of multiple (subscriptions, e.g monthly or annual).
Today, we require a product_price_id
. However, in most cases product_id
is more intuitive in addition to being automatically updated to the most recent price in case of changes in the dashboard. We still want to support the latter for historic reasons + for customers seeking more advanced use cases and being more explicit.
POST /v1/checkouts/custom/
with product_id
instead of product_price_id
and it will automatically use the active price for the sessionPOST /v1/checkout-links/
with product_id
instead of product_price_id
and upon going to the generated link I'm presented with a checkout reflecting the active pricePay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too