Hi! I have a checkout page and have looked at the docs but is there any way to add cart item/payment fees for a promo code/discount that would automatically reduce the amount total?
Thanks for any help!
Hi! I have a checkout page and have looked at the docs but is there any way to add cart item/payment fees for a promo code/discount that would automatically reduce the amount total?
Thanks for any help!
Hey @jaeioung, thanks for your question! Here is a link to a doc about adding a coupon to a subscription. Is this what you are looking for?
Excerpt from the doc below:
discount|object|Contains information about the coupon that applies to the subscription. Response only.
Adding a discount is a 2-step process:
coupon field of the subscription with Create Subscription or Update Subscription.For more information, see Discount Object.
Please let us know if this is what you are looking for or if it is something different. Can you share an example screenshot of what you are looking for if this doc is not valid for your solution?
I have asked some of our devs, so we will see what they return with.
But I believe you need to calculate the price discount on your side and pass the discounted value in the amount parameter for hosted checkout.
hey @jaeioung were you able to reach a solution for this?