#rogue_ram
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) that you created a customer with metadata? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
can it be a customer made in test mode?
Yup! That's fine
req_4Xv4hzfOdJJJvb
I'm able to see the user_id metadata in the Dashboard here: https://dashboard.stripe.com/test/customers/cus_OAvIVsYSah7J4R
Hm, it doesn't show in the webhook though nor does my server recive it
which it relies on to complete the request
heres the event im talking about:
https://dashboard.stripe.com/test/events/evt_1NOZV8Dn9VRyIkutKd35mKwp
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I see! Metadata on an object doesn't get populated to the different object. In this case, your metadata is set on the Customer object and it won't be populated in Invoice object like the one in evt_1NOZV8Dn9VRyIkutKd35mKwp
This is expected
Stripe doesn't populate metadata from one object to another
Ohh okay, that makes sense. If i were to get the customer object after the payment was completed could i extract the user_id from there?
(sorry for misunderstanding)
It's possible to get customer from the Invoice object, which you can make additional Customer retrieval request to get the user_id set on Customer object. However, it'll introduce more requests to Stripe. I'd recommend storing the customer ID to your own user ID in your own database and map it from your own database instead of making additional requests.
Oh yeah that makes sense, thank you for the better method, I'll do that