#yagnesh-p_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/1418527497082900570
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_xH6cuaEYMBzlz8
Your account/platform doesn't have access to that functionality
Can you enable it for that account?
You'd ned to request it via the page here: https://docs.stripe.com/payments/checkout/dynamically-update-line-items?payment-ui=embedded-components
Okay, apart from that can you please look at the case I shared, is this possible via this new checkout session.
I just want to remove some product from the array when a payment method is selected.
This? What do you mean by 'payment method selected'?
There is card, ach, amazon pay like that. Say if user has selected the amazon pay then i have to remove a product from that checkout session like that.
That's not supported today in the beta, no. The change event doesn't fire if the selected PM changes: https://docs.stripe.com/js/custom_checkout/change_event
Can i expect this event to be added?
It's feedback I'll share with the team!
Actually, you'll have a Payment Element mounted right?
Maybe this event fires? https://docs.stripe.com/js/element/events/on_change?type=paymentElement#element_on_change-event
Yes, the element will be mounted already.
If it does, then there'll be a value[type] field with the selected PM (e.g. card) and then you could call the update function to remove the line item(s)
Okay I will check this.
I have also requested this beta feature, when can i expect to hear back? because without that i won't be able to check this checkout session update.
The team is normally pretty prompt to action them โ they're US-based
Okay thanks for the update.
hello
I am not able to create new thread citing there is already an open thread
How can i add this IRPF tax also known as form 111 which is tax but in minus.
i want to create this tax rate and then add this in the tax_rates while creating the checkout session
Hi
Could you please share more details about this one ?
If you have the percentage of the tax, you can create the tax rate
Or you want to calculate the tax dyncamically
So in spain there is tax called IRPF,
say the invoice is 100 euro, 18% is VAT (regulat tax) and 9% IRPF, so this becomes 100 + 18 - 9 = 109, which is i have to pay. the minus 9 is irpf
i do have tax rate but then i have to identify somehow that this tax percent is supposed to be minus and not added.
Ah I see, thanks for the clarification. Stripe Tax rates doesn't support negative numbers (The percentage must be between 0 and 100.)
So you need to create a tax rate with the final percentage
but that wont be reflected in stripe, right? in the invoice or charge, i will only see the 9%(final percentage)
Yes
Okay thanks.
Happy to help!