#dingkai031

1 messages · Page 1 of 1 (latest)

modern jettyBOT
latent tree
rustic plank
#

I got this error, what does this mean?

latent tree
#

just means you need to run stripe login again

rustic plank
#

I see

#

okay so, I have done trigger the event and.....

#

and I think it's success, in the handle_dispute.php. I'm just return a string. Where can I see the output?

latent tree
#

you can check the logs of your PHP server. Or I think you can search for that evt_xxx event ID in your Stripe dashboard and the page for the event will have the response we got from you on that page

rustic plank
#

okay, I will try that

#

when we use stripe cli to test, for the webhook code... do we use the live stripe secret key or the test one?

latent tree
#

you'd generally use test mode keys for everything

rustic plank
#

ahh okay..

#

great it works now, thanks

rustic plank
#

Hi I got another question, so previously I ask Stripe... How to get customer details that issue a dispute from a webhook. So Stripe said it's from "charge.dispute.created" event. But I have check the event object, but there's no customer id inside it...

latent tree
#

well for example there's a charge ID , and the Charge object has a customer field

#

so when you handle the dispute event, you can call the Charge Retrieve API to get the charge and then look at the customer ID, or you can use the Dispute Retrieve API and use expand to expand charge.customer to get one object with all the information in it https://stripe.com/docs/expand

rustic plank
#

ahh that makes sense,, thanks for the explaination 😄