#Geico - connect invoice
1 messages · Page 1 of 1 (latest)
Yes, it’s for an affiliate platform where the person referring only gets say 20% of the first subscription payment and the user subscribing gets 20% off
In that case you will want to use a Webhook listener and listen for the invoice.created event. That invoice stays in draft mode for 1 hour, allowing you to make updates to it before it is finalized. During that window you update in the invoice and set the transfer_data property to the correct Account (destination) and Amount
https://stripe.com/docs/webhooks
https://stripe.com/docs/api/invoices/update
Hmm alright, I’ll see if I can make this work! Thanks!
Sure thing 👍
You'll need to know it's the first invoice
For that you'll want to check the billing_reason property
if it's subscription_create, that's the first invoice of a new subscription
One more question, the stripe account that’s actually taking the payments is also a connected standard account. How would I be able to handle refunds and chargebacks on the payments that have already been divvied to the express account
Perfect thank you
Hmmm...how are the charges being created? Are you using Direct, Destination, or Separate Charge & Transfer?
Right but how to handle the refunds and chargebacks depends on which of the three types of Connect charges are used. You can review each case here: https://stripe.com/docs/connect/charges
Is it possible to change which type is used for a subscription?
I was under the impression it’s not
That depends on how you create the Subscription.
https://stripe.com/docs/connect/subscriptions