#ChibiDragoon

1 messages · Page 1 of 1 (latest)

valid dewBOT
west cosmos
#

Hi there

fluid wagon
#

but if i already know what the tax % is going to be is it still the only way possible?

west cosmos
#

Yes, in that case you should just calculate this on your side. Stripe tax rates aren't compatible with PaymentIntents

fluid wagon
#

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?

west cosmos
#

Yep you can

fluid wagon
#

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

valid dewBOT
west cosmos
#

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

fluid wagon
#

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?

west cosmos
#

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

fluid wagon
#

oh, in the documentation it keeps mentioning that i have to do it

west cosmos
#

It is recommended, but not required.

fluid wagon
#

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

west cosmos
#

Yep that should work fine

fluid wagon
#

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

west cosmos
#

Nope can't schedule transfers for the future

#

You would need to handle this on your side

#

Using like a cron job or something

fluid wagon
#

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

west cosmos
#

Yep

#

You should be able to test this all out pretty easily!

fluid wagon
#

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

west cosmos
#

As long as the Connected Accounts are in the same country/region then what you described above should work well

fluid wagon
#

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

light pendant
fluid wagon
#

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?

light pendant
#

That should work I would imagine. What happens when you test it?

fluid wagon
#

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