You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To unblock you though, the metadata you set is on the Checkout Session but the Event you looked at is payment_intent.succeeded which describes a PaymentIntent. Those are two completely separate API resources with their own metadata so it's expected that they don't match. You should be listening for checkout.session.completed instead as the Event.
If you really want metadata on the PaymentIntent, you need to configure it on creation using the payment_jntent_data[metadata]parameter.
Describe the bug
I have an API with Ruby on Rails, and I'm creating a checkout session to make a payment. I leave you the code block below:
This is what is created in the dashboard:
I see this from Developers/Registrations -> POST /v1/checkout/sessions
Then I get a callback when you complete the payment but I get empty metadata, I'll show you an example:
Do you know what I'm doing wrong to not receive the metadata in the webhook?
To Reproduce
UP!
Expected behavior
I need to receive the metadata with the UID in the stripe webhook, to be able to locate the payment to which that webhook request refers.
Code snippets
No response
OS
macOs
Language version
Ruby 3.3.0
Library version
stripe 11.4.0
API version
2024-04-10
Additional context
No response
The text was updated successfully, but these errors were encountered: