#mitt_webhooks

1 messages ยท Page 1 of 1 (latest)

scarlet boneBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1331723565090996309

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

regal flicker
#

perfect, thanks.

royal scroll
#

Hello, can you tell me more about what specifically you are trying to do to enable them and in what way it isn't working? And do you have the ID of a coupon or promo code that you are having trouble doing this with?

regal flicker
#

hey pompey, yep.

#

so i've tried to add using the dashboard.

#

i've also tried using the shell.

#

stripe checkout sessions create --allow-promotion-codes="true" --ui-mode="embedded" --mode="subscription" -d "line_items[0][price]=0"

royal scroll
#

Have you created any price/product objects to represent the things that you are making coupons for here?

regal flicker
#

i have not.

#

i'll check the link to see how i go about creating one.

#

okay, now how do i create this?

#

hold on there may already be one..

royal scroll
regal flicker
#

no, i'm all set on the pricing. i've added the price_id as a parameter.

#

now it's prompting another error about quantity.

royal scroll
#

If it helps, this page has a request builder that has a nice UI for building requests like this https://stripe.sh

Explore our guides and examples to integrate Stripe.

regal flicker
#

does this look correct?

royal scroll
#

That is a successfully created Checkout Session, if you visit its URL you can see if it has the prices and discounts that you were trying to set

scarlet boneBOT
regal flicker
#

okay let me check.

#

what's the success url?

fleet basin
regal flicker
#

it's not working on the checkout page still tho.

fleet basin
#

What specifically is not working here?

regal flicker
#

]

#

not getting the promo code option to appear here.

fleet basin
#

Taking a look