#smbat_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
๐ 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
Could you please try create the PaymentMethod by setting allow_redisplay for always?
Hi Team, how can I create a promocode which can be applied only to the 5 units of a product?
@tough shale ask via #help
@pure solstice can you share your initCheckout code: https://docs.stripe.com/js/custom_checkout/init
@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');
}`
can you try and set elementsOptions[savedPaymentMethod][enableRedisplay]: 'auto': https://docs.stripe.com/js/custom_checkout/init#custom_checkout_init-options-elementsOptions-savedPaymentMethod-enableRedisplay
@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
@livid trellis isn't around now, I'm helping here
@tight monolith I need some time to make changes in front-end. I will get back once I try
do you know which version of Stripe.js you're using? https://docs.stripe.com/sdks/stripejs-versioning
We're using 'basil'
ok, then yes try setting the Stripe.js parameter I said
@pure solstice did that work?