#ChibiDragoon
1 messages · Page 1 of 1 (latest)
Hi there
Yes you would use our Tax API to add Tax to a PaymentIntent. See: https://stripe.com/docs/tax/custom
but if i already know what the tax % is going to be is it still the only way possible?
Yes, in that case you should just calculate this on your side. Stripe tax rates aren't compatible with PaymentIntents
ok and when i want to create a separate charges and transfers, the example shown are intents. Could i use Invoices intead since I can add taxes directly and not on the price?
Yep you can
ok so i can create an invoice to receive the payment and then transfert a portion of that amount to a connected account?
there doesnt seem to be a transfer_group value like payment_intent
Yep
You can update the transfer_group on the underlying PaymentIntent if you want
But really transfer_group has no actual effect.
It just is helpful for tracking
ah ok so when i create an invoice, i can next update the created payent_intent related to have a value on the transfer_group so i can later transfer money to another account using that payment intent. Correct?
Overall yes. But transfer_group isn't required at all to be able to transfer
So you don't have to do that
But you certainly can
It is recommended, but not required.
Basically, i want a customer to pay a bill to rent a house to the plateform. When the rented period is over, the plateform will pay the owner connected with stripe connect
Yep that should work fine
is there a way to "program" the transfer with a date or i have to manually create it the day it has to be payed?
the only timestamp i see is the the creation date
Nope can't schedule transfers for the future
You would need to handle this on your side
Using like a cron job or something
yeah it's what i had in mind
ok so to pay the connected account, i do a transfer with his account as the destination value and transfer group is mostly for "linking" purpose
yeah
basically i was doing a direct charge last week but my client changed the way he wanted it
so need to make the modifications but wanted to see if i needed to do the whole thing or not
As long as the Connected Accounts are in the same country/region then what you described above should work well
indeed it will be for canada only
also, when i create an invoice, i added a finalizeInvoice but it still takes an hour before it is completed. Is there a way for a invoice to be completed immediatly?
i was able to create an automatic payment with an intent but seems harder with an invoice
You can immediately make a Pay Invoice call: https://stripe.com/docs/api/invoices/pay
The hour window is there intentionally to give everyone the ability to edit the invoice after it is created
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ohhh
last time i asked the person mentionned that it was working as intended haha, i'll take a look
so i was missing step 3 of the invoice then ðŸ¤
so basically, i create my invoice with auto_advance = true, finalize with auto_advance = true and then i pay invoice. Correct?
That should work I would imagine. What happens when you test it?
it works fine. I had tested pay invoice before but it was with connect. I wonder if trying it with with a diffrent account made the difference