#myz123

1 messages · Page 1 of 1 (latest)

tropic cedarBOT
modest trail
#

You need to check your server logs why the deliver isn't succeeded. I see it's a 500 error, which means a problem on your webhook endpoint server

stoic jackal
#

I use cloud fuction. It works fine and console.log the result of events. I wonder if this payment is succesful? How can make sure this event can only be triggered when a payment is completed and successful.

modest trail
#

I see HTTP status code 500 in your screenshot. That means that there's a problem on your server. You should check the logs to see why it's not succeeding. Payment is successful if you get payment_intent.succeeded events. checkout.session.completed doesn't necessarily indicate a successful payment because some payment methods succeed asynchronously. payment_intent.succeeded is the event you'd want to rely on for indicating payment success

stoic jackal
#

Thanks. I test it again and it works.

modest trail
#

Cool. No problem