#jmak

1 messages · Page 1 of 1 (latest)

lone emberBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • jmak, 1 hour ago, 23 messages
narrow plank
#

Do you mean discount on a Checkout Session?

meager sun
#

yeah

#

i know i basically need to create a PromoCode, and then pass that promo code in , but I want to make sure Im making the promo code correctly (it's a one time discount to be used on any of the pricing options)

narrow plank
#

It's more of the area on the Customer. Promotion code is for the customer to key in

#

You probably want to look at Discount object

meager sun
#

But I want it prefilled in

#

is that possible?

#

something like this?

narrow plank
#

Hmm yes could be, can you test in Test mode?

meager sun
#

yeah but do you have any suggestions on what should be filled out here

narrow plank
#

I imagine you will have a logic before this, says "if this price, then use this promo, else if another price, use this promo". You will have a corresponding promo value

#

Then just set it into the Checkout Creation API

meager sun
#

yeah, so did I set these promo codes up right?

narrow plank
#

Yeah looks like so, if the compiler doesn't complain 😅

meager sun
#

okay i guess ill test it out manually....

#

the FE was just a bit confusing

#

i guess really just here... can you explain to me how I can have proper codes applied to the pricing options? I was thinking required min order value

#

but not sure if thats the right way to do it

#

for example, you apply a bigger discount on the yearly price of 100 and a smaller on the monthly price of $10/mo

narrow plank
#

Yes, isn't it that you can do a logic like "if this price, then use this promo, else if another price, use this promo"