#nerdslice_code

1 messages ¡ Page 1 of 1 (latest)

unreal crownBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250216187476836434

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

north basin
#

Hi there!

analog fulcrum
#

Hello there

north basin
#

Promo codes aren't supported for the PaymentElement

#

These codes can only be used with Checkout, PaymentLinks or the customer portal

analog fulcrum
#

Ah can they be used when i submit the payment through my php code?

north basin
#

I assume you're creating PaymentIntents directly? If not, can you share more details about how your integration is designed?

#

Also, are you processing one-off charges or working with Subscriptions or both?

analog fulcrum
#

Both, but this is for subscriptions.

north basin
#

Got it, okay

analog fulcrum
#

I am using laravel for this, and have it written out to use the cashier model

north basin
#

What this means is, if you want a customer to input a promo code, you would then have to determine whether that's a valid code then pass the relevant Promotion Code ID when creating the Subscription. You would then use the latest invoice's client secret to render the PaymentElement