#lewix_api

1 messages ¡ Page 1 of 1 (latest)

spark basinBOT
#

👋 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/1282585542076268639

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

heady flame
#

hello! I'm not too sure I understand, do you mean that when you apply a promo code, an invoice is generated? Do you have a more recent example for example within the past 2 weeks or so which I can look at?

granite beacon
#

hi

#

yes

#

when we apply a promo code an invoice is generated.

#

we use a third party and they say the following: "Stripe: our team checked with Stripe, invoicing is required in order to enable the use of Stripe Promo codes and therefore could not be removed."

#

how can invoicing be required to use promo code? it didn't make sense to us

spark basinBOT
granite beacon
#

the context here is that we use a third party to develop our backend with stripe.

here is what I originally sent them:

The integration with Stripe appears to activate invoicing by default, and after discussing this with Stripe's customer service, it seems this needs to be addressed at the code level on our end.

According to Stripe, disabling the invoicing function from the dashboard is not possible, but it's also not required for our payments. To avoid incurring additional invoicing fees, we need to ensure that no invoices are created when initiating customer payments. Your backend is sending requests to the Stripe API to create invoices, resulting in unnecessary charges.

Since you're currently initiating transactions via the API, you might opt to use the PaymentIntents API instead of invoices, which you can check here: https://docs.stripe.com/api/payment_intents/create. Our customers only require receipts, and we've been paying for invoicing unnecessarily. Therefore, we urgently request that invoicing be disabled as soon as possible."

and they responsed by saying that they have no choice

#

can you please confirm whether that is true that invoicing is required in order to enable the use of Stripe Promo codes and therefore could not be removed. We have mixed messages from different people working at Stripe.

fiery bay
#

Hi. I wish I could help, but this chat is focused on developers and technical questions. Our support team will be able to assist you better than I can: https://support.stripe.com/contact

granite beacon
#

we already reached out to support

#

and it's a dev question since it's part of the API to remove it - we just want to know if invoice are required for promotion code from a technical standpoint

fiery bay
#

I believe the Stripe support already answered your question

According to Stripe, disabling the invoicing function from the dashboard is not possible, but it's also not required for our payments. To avoid incurring additional invoicing fees, we need to ensure that no invoices are created when initiating customer payments. Your backend is sending requests to the Stripe API to create invoices, resulting in unnecessary charges.

Since you're currently initiating transactions via the API, you might opt to use the PaymentIntents API instead of invoices, which you can check here: https://docs.stripe.com/api/payment_intents/create. ```
#

Particularly "Your backend is sending requests to the Stripe API to create invoices, resulting in unnecessary charges."

granite beacon
#

yes exactly

#

but they say they need to do that in order to use the promotion code API-

#

which is were we couldn't find evidence of that in the doc

fiery bay
granite beacon
#

so you are saying that if we opt in to use PaymentIntents API , promo code will no longer work?

#

and you are also saying that we can look at checkout sessions API that will do the same thing?

fiery bay
#

Promo codes work for Checkout Sessions API and Billings API (i.e., invoice). It doesn't work for PaymentIntents API.

granite beacon
#

i guess the question comes down to how can we turn off invoicing at the API level and still use promo code like we currently do

fiery bay
#

I'd suggest you use Checkout sessions API instead if you don't want to use Billings, and I'd also recommend you to check with support and confirm if it would inccur additional fee.