#santosh
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you need to listen to transfer.updated event https://stripe.com/docs/api/events/types#event_types-transfer.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and transfer.created
Yes but which attribute to look for?
if a transfer was created then it was successful
otherwise the transfer wouldn't be created
Creation was successful, but the money won't go to customer account immediately for example in ACH debits. Also, there might be failure
{
"id": "tr_3NLad02eZvKYlo2C09wNTm9e",
"object": "transfer",
"amount": 1211,
"amount_reversed": 0,
"balance_transaction": "txn_1032Rp2eZvKYlo2CpErRBj09",
"created": 1687390816,
"currency": "usd",
"description": null,
"destination": "acct_1MMLi1Gf4BMpgHRX",
"destination_payment": "py_1NLadIGf4BMpgHRXTvuRIrqg",
"livemode": false,
"metadata": {},
"reversals": {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/transfers/tr_3NLad02eZvKYlo2C09wNTm9e/reversals"
},
"reversed": false,
"source_transaction": "ch_3NLad02eZvKYlo2C0HglfJfG",
"source_type": "card",
"transfer_group": "group_pi_3NLad02eZvKYlo2C0rJiSBoz"
}
Which attribute to look for?
@dry grail how can I know that?
Our system needs to know that currenct status like created, processing, completed, failed etc.
If the transfer is created, that can't be treated as successful transfer as there might be errors in transferring money to our customers. Also, this transfer doesn't happen immediately so we need to show some intermediate status to our customers and the estimated delivery date if possible