#Mahmoud_ahmed-metadata

1 messages · Page 1 of 1 (latest)

shy sigil
#

Hello! Where did you set the metadata?> DO you have an example request ID that shows where you set it?

modest horizon
#

$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

shy sigil
#

Gotcha - so can you share an example payment_intent.succeeded event that you're not able to find the metadata for/

modest horizon
#

yes

#

it not exists for payment_intent.succeeded event as you show in attached image

shy sigil
#

Can you share the Event ID? (evt_xxx)

modest horizon
#

evt_3Ln89uDynjRZ45TZ2QnLWr6N

shy sigil
modest horizon
#

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

#

?

spring geyser
modest horizon
#

sorry , i want to get it from stripe dashboard not code

spring geyser