#0xl34n
1 messages · Page 1 of 1 (latest)
Hi there!
Hello!
How are you accepting payments? Checkout Session, Payment Element, something else?
With Checkout Session
When you create the Checkout Session, if you know in advance which seller it "belongs" to, you could add some metadata to it. Otherwise if you don't know in advance, a coupon could work yes.
Are you creating Subscriptions with the Checkout Session?
If so you can learn more about discounts here: https://stripe.com/docs/billing/subscriptions/coupons
Yes
And what do you thinks about pointer 3?
I'm not sure I understand point 3. Could you give a concrete example of what you are trying to achieve?
Sure
I have a product that I sell through checkout, it is a one-time payment product, non-recurring. This product has a cost of $15, which is the normal price for customers, but I would like the Pro Plan users to have a special attention in the price. I can unlock the ability to add a discount code on the checkout page, but apply a discount myself from the code when creating the checkout URL.
I'm still not sure I fully understand sorry.
I can unlock the ability to add a discount code on the checkout page
Yes that's possible with this parameter: https://stripe.com/docs/api/checkout/sessions/create?lang=java#create_checkout_session-allow_promotion_codes
but apply a discount myself from the code when creating the checkout URL.
Yes that's possible witht his parameter: https://stripe.com/docs/api/checkout/sessions/create?lang=java#create_checkout_session-discounts
Perfect, thanks!