#NotiGate-metadata-checkout
1 messages ยท Page 1 of 1 (latest)
Oh no sorry
charge โ ch_3KFmQDANbuz0wK883T9NjT2J
payment_intent โ pi_3KFmQDANbuz0wK883uqF9JW1
Oh
I use
OH
IM STUPID
I use stripe trigger payment_intent.succeeded
๐
It should be payment_intent_data: { metadata: { key: 'value'} }
Your key should not be a string
Yep
I didn't actually know that
Already object
Hmm okay well can you share your event ID that you are looking at?
Okay so yeah it is working. Can you log just the metadata instead of the whole PaymentIntent object?
Okaywait
Just metadata: {
pseudo : pseudo,
quantity : quantity
}
?
Without payment_intent_data: {
?
Sorry, let's back up just a sec. How are you logging out the above?
???
When you are seeing Log: metadata: [object]
Is this what you are seeing in the webhook?
Ye
Event = stripe.webhooks.constructEvent(request.body, sig, endpointSecret);
Console.log(event)
Yep okay so try Console.log(event.metadata)