#Mahmoud_ahmed-metadata
1 messages · Page 1 of 1 (latest)
Hello! Where did you set the metadata?> DO you have an example request ID that shows where you set it?
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $reservation->total_fees,
'currency' => 'AED',
'customer' => $stripe_customer_id,
'automatic_payment_methods' => [
'enabled' => 'true',
],
'metadata' => [
'reservation_id' => 10,
],
]);
it already appear in dashboard when i create payment intent
but when try to get the reservation id by listent for payment_intent.succeeded event i cannot get it
Gotcha - so can you share an example payment_intent.succeeded event that you're not able to find the metadata for/
yes
it not exists for payment_intent.succeeded event as you show in attached image
Can you share the Event ID? (evt_xxx)
evt_3Ln89uDynjRZ45TZ2QnLWr6N
So that event was generated by a Payment Intent that was NOT created by the code you shared - it was created by the CLI (https://dashboard.stripe.com/test/logs/req_67w0LaGvzAREIg), and the CLI does not set that metadata, so it's expected that it's not populated
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
how i can use event id to search in log section
i i have the event id = evt_3Ln8qGDynjRZ45TZ1mpPEOup
ho can i get related logs
?
You can retrieve the event here: https://stripe.com/docs/api/events/retrieve. The information that you're seeking for will be in the response.
sorry , i want to get it from stripe dashboard not code
You'd be able to look at your event: https://dashboard.stripe.com/events