#OskSta-pending-webhook
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ it will automatically time-out on its own. I don't think there's a way for pending webhooks to be cancelled manually
Is that webhook endpoint no longer usable?
Hi, thanks for your time
It is active and usable and working. Tested via stripe CLI
So it should NOT be a pending one, but one with a 200 response
red should be gone and green text should occur ๐
Ah, I see. Are there other webhooks that are more recent that have succeeded then?
So you're not sure if your endpoint is sending back a 200? Or you know for certain that it's not?
it is, right?
But in the event detail I receive:
<?xml version="1.0"?>
<response><type>https://tools.ietf.org/html/rfc2616#section-10</type><title>An error occurred</title><status>404</status><detail>Not Found</detail></response>
Hypertext Transfer Protocol -- HTTP/1.1 (RFC 2616)
Its a bit weird
And until now we dont use webhook signature until its working to avoid complexity
Can you copy/past the event IDs from that screenshot? eg. evt_abc123
sure
evt_3LI0O2G5XU8o1CxM1iEHlLR7
Damn
I got it
not /webhook/stripe
/stripe/webhook
Ahhhhhhhhh
is my endpoint....
Yup. That'll do it
I don't think I helped much, but I'm happy to have been part of the journey all the same
๐
Another question regarding the event itself in PHP
$paymentIntent = $event->data;
$paymentIntent->metadata->payment_id;
$event->data is a StripeObject
$paymentIntent->metadata->payment_id; this should work, but I receive:
hp.WARNING: Warning: Attempt to read property "payment_id" on null {"exception":"[object] (ErrorException(code: 0): Warning: Attempt to read property "payment_id" on null at /app/src/Bridge/Stripe/Webhook/EventHandler/PaymentIntentCreated.php:35)"} []
it is not null in the payload: "metadata":{"payment_id":"01G75YXFJZZN61F5DQH12WRJFJ","steuernummer":"3360173097159","user_id":"01G74VMRX44YJMP7FYF1ZJHNQK"
๐ stepping in here as two-shoes had to step away
I think you need $paymentIntent->metadata['payment_id'] here iirc
A bit rusty on my PHP
Thanks, will try
Same problem
[2022-07-08T00:52:19.412249+02:00] payment.DEBUG: stripe payload {"id":"evt_3LI0O2G5XU8o1CxM1iEHlLR7","object":"event","api_version":"2020-08-27","created":1656983830,"data":{"object":{"id":"pi_3LI0O2G5XU8o1CxM1TpA1CZu","object":"payment_intent","amount":3990,"amount_capturable":0,"amount_details":{"tip":[]},"amount_received":0,"application":null,"application_fee_amount":null,"automatic_payment_methods":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"automatic","charges":{"object":"list","data":[],"has_more":false,"total_count":0,"url":"/v1/charges?payment_intent=pi_3LI0O2G5XU8o1CxM1TpA1CZu"},"client_secret":"pi_3LI0O2G5XU8o1CxM1TpA1CZu_secret_sX2dvSj2t0rdQCf0Dc5htmVEL","confirmation_method":"automatic","created":1656983830,"currency":"eur","customer":null,"description":null,"invoice":null,"last_payment_error":null,"livemode":true,"metadata":{"payment_id":"01G75YXFJZZN61F5DQH12WRJFJ","steuernummer":"3360173097159","user_id":"01G74VMRX44YJMP7FYF1ZJHNQK","wirtschaftliche_einheit_id":"01G74
VV7GWVEQQZE1S9BJHQF5G"},"next_action":null,"on_behalf_of":null,"payment_method":null,"payment_method_options":{"card":{"installments":null,"mandate_options":null,"network":null,"request_three_d_secure":"automatic"},"giropay":[],"sofort":{"preferred_language":null}},"payment_method_types":["card","giropay","sofort"],"processing":null,"receipt_email":null,"review":null,"setup_future_usage":null,"shipping":null,"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null}},"livemode":true,"pending_webhooks":1,"request":{"id":"req_zS0yfewxkYy56X","idempotency_key":"0361e7a0-f548-432d-ba73-be2be6605024"},"type":"payment_intent.created"} []
[2022-07-08T00:52:19.451232+02:00] php.WARNING: Warning: Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Warning: Trying to access array offset on value of type null at /app/src/Bridge/Stripe/Webhook/EventHandler/PaymentIntentCreated.php:35)"} []