#arvind_singh_21006
1 messages · Page 1 of 1 (latest)
👋 happy to help
okay then tell me
okay what about payout as a admin i want withdraw my commission and i simply used payout method but then i checked status of payout response then they showing like Pending status after what when i retrive payout using payout id then status showing paid
?
why
okay wait
this method i'm using to payout owner bank accont
const payout = await stripe.payouts.create({
amount: Math.round(1 * 100),
currency: 'aud',
});
response body
{
"id": "po_1NaYSGHnkNc8JPqNHaubkmEr",
"object": "payout",
"amount": 40000,
"arrival_date": 1690934400,
"automatic": false,
"balance_transaction": "txn_1NaYSGHnkNc8JPqN7lu3vcKa",
"created": 1690957364,
"currency": "aud",
"description": null,
"destination": "ba_1NY6dgHnkNc8JPqNvVNban8r",
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"livemode": false,
"metadata": {
},
"method": "standard",
"original_payout": null,
"reconciliation_status": "not_applicable",
"reversed_by": null,
"source_type": "card",
"statement_descriptor": null,
"status": "pending",
"type": "bank_account"
}
okay
but when i retrive payout detail using payout retrieive method using this id
po_1NaYSGHnkNc8JPqNHaubkmEr
then showing Paid
how can i handel this situation when status change then they reflect on status front-side\
?
are you getting it ?
Hi ?
sorry give me a minute will be there shortly with you
okay sure!
I'm not sure I totally follow this
Hey! Taking over for my colleague. Let me catch up.
You can listen to payout.updated event:
https://stripe.com/docs/api/events/types#event_types-payout.updated
Ok, let's back to your first question:
Hi i need help i want to send money from stripe plateform to connect account using webhook?
What you want to achieve exactly? webhooks are for getting notification and not for doing actions.
both getting notification and also doing acion