#dano_jan
1 messages · Page 1 of 1 (latest)
There's charge.succeeded for normal payments and charge.updated for asynchronous payments, but I'm not aware of any balance transaction updated type webhook events
can i use charge.succeded to listen the source id? in this example there are ch_3NcoZALtHI27Ai2K0zauSedu
What do you mean "listen the source id"? What info do you want from the webhook specifically?
In this example the source id woul be: "source": "ch_3NcoZALtHI27Ai2K0zauSedu",
"reporting_category": "charge",
"source": "ch_3NcoZALtHI27Ai2K0zauSedu",
** "status": "pending",**
"type": "charge"```
In that case: yes, the source would be populated
Is it possible that when the status changes, the webhook can be sent?
ok i will try with this.
srry, one las question
Can I test these status changes with charge.succeeded in the stripe cli?
in this example, can i change the status for this charge "source": "ch_3NcoZALtHI27Ai2K0zauSedu"?
You can't change the status as far as I know. What are you testing? If you're just trying to get a visual on the lifecycle of the charge, then you can trigger a charge.succeeded event via the CLI, but as far as I know, that won't ever show payments that are pending. What you want to listen for is charge.updated in that case: https://stripe.com/docs/payments/payment-intents/asynchronous-capture-automatic-async#listen-webhooks
In order to test that workflow, you would need to create the payment manually and setup a webhook endpoint to listen for that event