#monshery - transfers webhook event
1 messages · Page 1 of 1 (latest)
Hello. One moment while I catch up
You could listen for this event: https://stripe.com/docs/api/events/types#event_types-transfer.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.
Which one is the successful event ?
Oh if you want to know when a transfer is successfully paid out, you can listen to: https://stripe.com/docs/api/events/types#event_types-transfer.paid
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Well then there's something weird
2022-02-14 07:54:20 --> transfer.created [evt_1KT6saKuNxywaQi9IlCnCFbN]
2022-02-14 07:54:20 --> connect payment.created [evt_1KT6sa4FndMWyShKp7rVpi3o]
2022-02-14 07:54:21 --> connect balance.available [evt_1KT6sb4FndMWyShKLhpb3T7y]
those event fires
the .paid doesnot
Are you using instant payouts? The note here shows that it could take up to 30 min: https://stripe.com/docs/api/events/types#event_types-transfer.paid
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
If it takes up to 30 minutes, how do i test for this, and how do i build a fulfilment webhook
it doesnt make sense
do i need to send something back ?
What will you not be able to test if the event takes 30 min to send?
You could wait the 30 min to test. Also, are you using instant payouts?
I am not sure if i am using instant payouts
but it doesnt make sense at all to wait 30 minutes to test a call back
So each iteration each change i have to wait 30 minutes for a webhook
thats unheard of
await stripe.transfers.create({
amount: price,
currency,
destination: stripeAccountId,
transfer_group: id,
metadata: {
UserId,
payoutId: id
},
});
this is how i initiate the transfer
Gotcha. Let me ask a colleague if there's a faster way for you to test