#ChibiDragoon
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You directly pass add it to the amount. We have a guide here for Stripe Tax + PaymentIntent custom flow
https://stripe.com/docs/tax/custom
the thing is by doing it that way, there is no possibility of the client to know the amount taxes in his receipt correct?
I don't think so (unless you generate your own receipts)
and since the receipt is made by a connected account, the owner of that account would have to create it
You as the platform should still have access to that data so you can still make your own custom emails for them
so it would be like a template or i would have to make one for each and every connected account?
To be clear I am talking about something you would be implementing yourself. I don't think Stripe provides functionality for this so it would be up to you on how to implement it. From the Stripe side you would just be retrieving some data on the payment intent and you can do that the same way for every account connected to you
We do have email receipts but I don't think they break down by tax here. If you preview one in the dashboard you can double-check but otherwise you'd want to go the custom route if you want this https://stripe.com/docs/receipts
ok so not use stripe to send receipt and use my application to send an email
for my first question, if I already know the tax calculations, I can just go directly to the 3rd phase to create the tax transaction
since the taxes will always be the same
Yes, if you want info that is not on our normal receipt then you would need to make a custom one.
Yes, no need to calculate if it will be the same every time
but i would still need to create the tax transaction
to link it to the payment intent
from what i can see in the API, i need the calculation id but if i already know the prices, i dont need it.
because I am in Canada, it is always 9.975% and 5% (2 different taxes) that are added to the price
Hi there ๐ jumping in as the server is a bit busy. I've reviewed the context of the thread, but I don't think I'm grasping what you're currently trying to ask. Would you mind restating your current question for me?
@wise hatch I wanted to check in to see if you were still around and if you saw my above message?
sorry i didnt see it
basically, i am creating a payment intent but there is no field to enter a tax amount.
From what I was mentionned, i would have to add it to the price when i create the intent which is fine I can do that.
Your collegue mentionned to create a transaction with my tax but because i know how to calculate it and that to create a transaction it mentions that i need to have a calculation made which i don't need:https://stripe.com/docs/api/tax/transactions/create_from_calculation?lang=curl#tax_transaction_create-calculation.
Is there a way for me to add a tax to be shown in my receipt?
Not if you're using Payment Intents, they don't support line-item or tax level details like that. Payment Intents can only accept the overall amount of the payment.
ahhhh i see
sine i am making a payment for a connected account. Is payment intent the only way?
it felt like direct payment was only by payment intent
It depends on the flow you're trying to build. If you want a custom checkout page that leverages Stripe Elements, then Payment Intents are the most common approach.
A possible alternative is to begin leveraging Stripe Billing, so you can create Invoices which allow for more granularity.
If you're alright with using Stripe hosted checkout pages, then Checkout Sessions may be an option, and they also support displaying tax details.
Basically, i am making a air bnb clone and i want a customer to rent an appartement. The payment will go to the connected account. To that payment i want to add some things like a application fee (that works with payment intent) and also want to add the tax.
You can add the tax amount to the amount provided to the Payment Intent, but with that approach Stripe won't have insight into how much of the payment is the typical amount and how much is tax, so you will need to build an approach to track that and display what you would like to your customers.
If you need a place to store data on the Payment Intent that is important to your processes but not necessarily important to Stripe, then you can leverage the metadata parameter:
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-metadata
https://stripe.com/docs/api/metadata
metadata won't be displayed to your customers by Stripe, and it won't appear on the receipts generated by Stripe, but if you are building your own receipts then you can store and read data from that field for those purposes.
and if i would use stripe checkout instead, would the client have to enter his informations every time or can it create a customer and a payment intent?
Checkout Sessions can be created so they always create Customer objects:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
and there is logic for pre-filling previously used payment methods, which is explained in more detail here:
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout#handling-existing-customers
Most of our payment flows, including Invoices and Checkout Sessions, leverage Payment Intents to actually process their payments, so you will still be able to reference those as well.
ok, i will be looking into those
could i create an invoice instead of a payment intent to do a direct charge for a connected account?
Yup
oh
You create and finalize the Invoice, then it will generate a Payment Intent and you can use the client secret from that intent to render Stripe Elements
so i can add taxes on the invoice instead of the payment intent
Correct, you could define a Tax Rate, and then apply that to Invoices as appropriate. I would recommend using Tax Rates if you are already confident you know the tax amounts you need to charge. If you're unsure about that, then you can explore leveraging Stripe Tax where we handle those calculations based on the Customer address and tax code of the Product being sold.
so the invoice would be created from the platform and the result would be given to the connected account?
so i would use tax rates that are on the platform
Not for a Direct Charge scenario, in those cases the payment occurs on the Connected Account, so all related objects need to also reside there (Invoice, Tax Rate, Customer, etc).
The flow you're describing, where payments are processed on the Platform account and then a portion of those proceeds are sent to the Connected Account, is our Destination Charges approach.
ok basically i want everything to come from the conencted account (direct charges)
would invoice still be possible
I might have misunderstood the way you mentioned some things
Yup, everything will be done on the Connected Account, but this is possible
https://stripe.com/docs/invoicing/connect#direct
ok nice that might be the way to go
since the tax rate would be from the connected account, is there a way for me to use them with knowing their id's?
No, you will need to reference them by their ID. The request that you make to create the Tax Rates will receive a response that includes the ID of the new Tax Rate if the request is successful, you can then store that ID so you can reference it later.
and since I have 2 taxes in my country I would have to create both. and save them on my side
Correct
and i can create them on the connected account the same way i would a payment intent if i have it's id i assume
Yup