#kekox-invoices

1 messages · Page 1 of 1 (latest)

vivid siren
#

You would then update the metadata accordingly

pulsar cloak
#

So there is no point on storing the transfer or the charge? what if I want to know when the transfer got paid?

thorny sand
#

👋 I'm hopping in since bismark needs to head out

pulsar cloak
#

The problem is I can't easily know which invoice the transfer is from for example on transfer.created or transfer.paid events

thorny sand
pulsar cloak
thorny sand
#

Yup, so you're on the version that would see the Transfer/Payout split and you wouldn't even get transfer.paid events at all.

#

But to answer your original question - from the transfer.created events you can retrieve the Charge found at source_transaction and expand payment_intent.invoice so that the full Payment Intent and Invoice will be returned in the response

pulsar cloak
#

Ah got it! that so helpful, so if I wanted to store the charge I can do the same like expand the payment intent to get the invoice cool.

#

But

thorny sand
#

yup!

pulsar cloak
#

Like this is because we're using Stripe connect right?

#

So is there any point on storing the transfer and the charge? I mean a better question should be. Does the invoice statuses reflects the whole status for the payment_intent charge and transfer? or it's just for the payment_intent/charge

thorny sand
#

Like this is because we're using Stripe connect right?
Can you be more specific with this question (what specifically are you referring to)?

pulsar cloak
#

Hehe sorry, forget that question. I just want to know if the invoice status reflects the whole status for the charge/payment_intent/transfer or it's just for the charge/payment_intent

thorny sand
#

For the most part, yes but there are some exceptions - like if an Invoice is marked as paid_out_of_band I don't think the transfer would happen, but the Invoice would still be paid

pulsar cloak
#

Also I'm seeing that because of the split between transfer/payout the transfer doesn't have a status as the payout has, so there is no point on my side to store the transfer haha. I think I'm kind of confused haha. Is there any good documentation for this whole process of creating invoices and automated transfers with Stripe connect like a life cycle chart or step by step maybe?

thorny sand
#

backing up for a second - what would you like to accomplish by tracking the transfer.created events? Are you trying to track whenever your connect accounts get funds? are you trying to track when they get payouts?

pulsar cloak
#

Yes I would like to show the status for each step. i.e. show the status for the charge/payment_intent show the status for transfer like they got the funds on their connect account.

#

also for payouts

thorny sand
#

To be safe (especially because of edge cases like the one I mentioned) I'd recommend just storing them all if you want to be sure that status of each is accurate

#

For payouts that's completely separate from the Invoicing flow, and you'd need to listen to payout.created

pulsar cloak
#

Cool thank you. can you provide me with the documentation for the stripe connect flow?

thorny sand
#

Which part of the flow specifically (there's a lot of different docs)?

pulsar cloak
#

Hmmmm creation of the invoice with the automatic transfer? I think i can jump to other docs starting there.

cinder mauve
#

Looking for the docs on this and will get back to you in a moment

#

After catching up in this thread a bit more, I am still a bit unclear on the docs we are looking for. Are you looking for a doc that talks more about how you already create these Invoices?

pulsar cloak
#

Doc about how the transfer_data field for Stripe connect works when creating an invoice.

cinder mauve
pulsar cloak
#

Thank you so much!

cinder mauve
#

Of course, just let me know if you have any more questions