#charlyfoodie_unexpected

1 messages ¡ Page 1 of 1 (latest)

mortal knollBOT
#

👋 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/1222839804526329946

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

mighty fjordBOT
fair agate
#

Hi, let me help you with this.

#

What's wrong exactly? Do you have an example?

manic crane
#

Hi Vanya

#

Yes for example for a subscription price of 10$ during the payment 2$ are added with stripe tax. So the total amount is 12$.

In our code we aim to calculate as follow for the transfer of the amount to the Express account :

7% fees applied to the total amount and deducted to the amount (excluding VAT) to find the net amount
10$ - (12$ x 7%) = 9,16$ = Net amount

Then on this net amount we want to transfer 80% to the Express connected account :
9,16$ x 80% = 7,33$ transferred to the express account.

The remaining amount : 12$ - 7,33$ = 4,67$ should be on our Platform stripe account.

But the problem is that during a subscription payment, 80% of the total amount (12$ x 80% = 9,6$) are transferred to the express account, it's like our configuration in the code/ metadatas are note taken into account

fair agate
#

Do you have an example Checkout Session ID?

manic crane
#

Yes sure here is an example :

#

pi_3Ow0B5G1RCiQG6Zk1m05aR0F

fair agate
#

I see that the total amount on the Checkout Session is 4.99, and the Price unit_amount without tax is 4.99. Meaning the exclusive taxes are not applied. Is this the exact problem?

manic crane
#

4.99 is the amount without tax, the total payment was 5.99 (including 1$ VAT) on this transaction

#

Here is another example if you need :

#

pi_3OzFjuG1RCiQG6Zk1Rv2UoYu

#

And you can see that the total payment is 5.99 (including 1$ VAT on a subscription price of 4.99$)

The transferred amount is 4.79$ (5.99 x 80%) while it should be 3.66$ with the configuration i detailed above

fair agate
#

The transfer percent is from the total, so the behavior is expected. If you want to transfer a different amount, you need to calculate the transfer percentage yourself.

manic crane
#

The percent transfert may vary depending if there are VAT applicable that's why we made the calculation above

#

can we set up the transfer percent on the total amount (Excluding VAT)?

fair agate
#

No, this is not configurable. You will need to calculate the percentage yourself then.

#

The total is always incl tax.

manic crane
#

and this dollar-amount calculated ourselves, can be calculated automaticaly with our logic and the metadatas ? Meaning for example the transfert related to a payment made by a US consumer with a certain VAT and a transfert related to a French consumer to the same Express account but with 2 different VAT will be 2 different transferts amounts because of the metadatas ? Same if the Express account update his subscription price, the dollar amount for the transfer will automatically be updated with the new price ?

fair agate
#

No, you have to calculate it yourself and set the final transfer amount.

manic crane
#

ok we are testing with our CTO