#0388118270
1 messages · Page 1 of 1 (latest)
Hi there, you can enable promo code in a checkout session by enabling allow_promotion_codes
can we set it in stripe setting @royal badge ?
There's no global settings to enable promo codes for all checkout sessions, you need to specify it when creating a checkout session https://stripe.com/docs/api/checkout/sessions/create?lang=php#create_checkout_session-allow_promotion_codes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If I'm using invoice flow instead of the checkout flow, is it the same config? @lofty panther
Invoice and checkout are two different products
Hi @lofty panther .
Sorry for make you confuse. I mean how to enable coupon in invoice step.
Example this invoice: https://invoice.stripe.com/i/acct_1DiVwcFcRPm8Oi6Y/test_YWNjdF8xRGlWd2NGY1JQbThPaTZZLF9NVEtDY0IzaDJEOURiRlR0Y1pnbFFDS3BoQUhRRXFvLDU0Mjg3MTc20200ec1ycGMV?s=em
https://stripe.com/docs/api/invoices/create?lang=php#create_invoice-discounts you can specify a coupon when creating an invoice.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.