#matiullahpro_code

1 messages ยท Page 1 of 1 (latest)

fluid lynxBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

brisk cloak
#

You are creating the payment intent in test mode: https://dashboard.stripe.com/test/logs/req_sKLmQBcdxx7WE2
But the taxcalc exists in a sandbox: https://dashboard.stripe.com/test/logs/req_4FK5AhRiqmvW1c

The payment intent doesn't recognize the tax calc ID because its in a different account/context, these need to match.

#

Either create the payment intent in the sandbox, or create the tax calc in test mode.

heavy escarp
#

check this code. I am not using different account for both. using same account and passing calculation id to payment intent.

brisk cloak
#

Oh hmm yes i see that same key being used. Interesting. This is probably something my my end sorry about that.

#

Just trying to think of other possible issues here.

#

They are using different patterns, the direct charge / stripe_acount pattern for the tax calc, then destination/OBO for the latter

#

Oh hmm these probably don't match now that i says this

#

Are you following a guide for this that suggests this arrangement?

heavy escarp
#

I am waiting.

brisk cloak
#

Are you following a guide for building this that explains this is a supported flow? I'm unsure about mixing connected acount calculations and platform on_behalf_of payments.

heavy escarp
fluid lynxBOT
brisk cloak
#

Thank you -- this is helpful context

#

Ok, the issue here seems to be with hooks[inputs][tax][calculation]. Your requests pass this but the guide does not.

#

Is there a reason you're including this in addition to the metadata[tax_calculation]"={{CALCULATION_ID}} indicated?

heavy escarp
brisk cloak
#

Right, remove that

#

That link to the tax calculation on the connected account is what i think creates the problem

heavy escarp
brisk cloak
#

Not sure what you mean by that, it sounds like a dashboard flow

heavy escarp
#

let me share a screenshot with you.

brisk cloak
heavy escarp
#

this one.

heavy escarp
brisk cloak
#

Likely this connect flow isn't supported for that dashboard flow, but if you're finding you cannot complete the steps as indicates here then you'll likely need to contact support for guidance on whether this flow is supported as you're trying to do.

#

Can you show the example error you refer to when you create the payment intents without hooks and do the manual tax transaction?

heavy escarp
#

is it possible to collect platform fee and deduct VAT/taxes using checkout, because I have tried it using invoices but it is not working, because invoice support one feature at a time. connected account transfer or VAT calculation.

#

but here transfer amount to connected account is not working.

brisk cloak
#

That seems like a very different question. Can you share the invoice ID?

heavy escarp
#

in_1Rz2MDD1mw6NJ7wCn1inebMD

tardy dock
#

Hello ๐Ÿ‘‹

I'm taking over as my colleague had to go. Give me a minute to catch up

#

I'm a little confused by your statement

invoice support one feature at a time. connected account transfer or VAT calculation.

This Invoice was created without specifying a Connected Account, except in the on_behalf_of parameter. What type of Connect Charge are you attempting to make?

Request: https://dashboard.stripe.com/test/logs/req_EvCTcra6Uybum8

heavy escarp
#

platform fee (application_fee)

tardy dock
#

You did not specify that here

#

And application fees are used with Direct Charges. You did not make a direct charge

heavy escarp
heavy escarp
tardy dock
#

Can you share the request ID for a failing request that has both parameters?

heavy escarp
#

sure, give me few moments to check it from logs.

#

check this.

tardy dock
#

Please provide a request ID. I cannot help with just a screenshot

heavy escarp
#

req_bOz9d8uV2bfpYT

tardy dock
#

Thank you

#

Sorry you are creating this request incorrectly

#

Are you trying to make a Direct Charge while collecting an application_fee?

tardy dock
#

That is what I just described.

#

And you are not correctly making this request. You did not specify the stripe_account parameter

heavy escarp
tardy dock
#

I can see the parameters you passed in your API request

#

You are not specifying the stripe_account in your request

#

You need to debug your Invoice code to determine why that is

heavy escarp
#

ok don't close this thread for next 30 minutes. let me retry.

fluid lynxBOT
heavy escarp
#

application_fee_amount is not working (not included) in invoice. in_1S04weD1mw6NJ7wC7tXaI940

#

even it is mentioned in request.

steady current
#

I'm not sure what you mean by application_fee_amount is not included in the Invoice. I'm looking at the Invoice creation request (req_bD2XZgPTjypJgz) and I can see the application_fee_amount.

heavy escarp
#

I means it is not showing in invoice, nor the balance is showing in admin/main account.

fluid lynxBOT
coral cliff
#

hey, I'm here, give me a second

#

I means it is not showing in invoice
can you be specific, so we're talking about the same thing? What exact object / thing are you looking at?

#

can you explicitly share the link?

heavy escarp
#

I am trying to deduct platform fee (application fee) and it should be printed on invoice.

coral cliff
#

that didn't exactly answer my question but are you saying: You are looking at the Invoice PDF and that does not have the application fee amount on it?

#

because I'm pretty sure that isn't supported. The Invoice won't display the application fee amount, the Invoice is for the end customer. This may be a feature request but pretty certain this isn't supported

#

@heavy escarp pls respond, or I'll have to close the thread