#smbat_api

1 messages ยท Page 1 of 1 (latest)

quiet skyBOT
#

๐Ÿ‘‹ 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/1440987950640005223

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

livid trellis
#

๐Ÿ‘‹ Happy to help!

#

The customer cus_TSC4rvzokuvTdZ seems to have an attached Card PaymentMethod pm_1SVHpfRUgORiVvfWQgO2Ks4A

#

Its allow_redisplay is unspecified

#

However the allow_redisplay_filters of the created checkout session is always

quiet skyBOT
livid trellis
#

Could you please try create the PaymentMethod by setting allow_redisplay for always?

tough shale
#

Hi Team, how can I create a promocode which can be applied only to the 5 units of a product?

tight monolith
#

@tough shale ask via #help

pure solstice
#

@tight monolith something like this
this._checkout = await this._stripe.initCheckout({ fetchClientSecret: this.fetchClientSecret });
`const paymentElement = this._checkout.createPaymentElement();
if (paymentElement) {
// Listen for the ready event to confirm element is mounted
paymentElement.on('ready', () => {
this.loadingStripe = false;
});

await paymentElement.mount('#payment-element');

}`

tight monolith
pure solstice
#

@livid trellis here is the checkout_session_id I tried "cs_test_a1czAgLfLqUdv77zcSutorqv73c0LlLX4X9flEnqGQMjjaC9gN3dPFfCaS" and I believe allow_redisplay_filters here is the one from screenshot

tight monolith
#

@livid trellis isn't around now, I'm helping here

pure solstice
#

@tight monolith I need some time to make changes in front-end. I will get back once I try

tight monolith
pure solstice
#

We're using 'basil'

quiet skyBOT
tight monolith
tight monolith
#

@pure solstice did that work?