stripe.charge.list missing metadata
Problem
When I called `stripe.charges.list(filter, callback);` I get a full list of charges complete with metadata. However, when i call `stripe.charges.list(filter, {stripe_account: accountId}, callback);` to get a subset of charges from the managed account, I am getting the charges without the metadata. How can I get the metadata in the second example?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: stripe.charge.list missing metadata
@matthewarkin Thanks for the advice but I must 'charge through the platform' to apply application fee and use managed account. Base on your explanation, I will try to expand on the charge id and see what I get. Will report back. --- UPDATE: It doesnt work. I was expecting the returned objects has a charge id which I can expand on but they dont. Essentially they are all payment objects returne
Trust Score
2 verifications
- 1
@matthewarkin Thanks for the advice but I must 'charge through the platform' to
@matthewarkin Thanks for the advice but I must 'charge through the platform' to apply application fee and use managed account.
- 2
Base on your explanation, I will try to expand on the charge id and see what I g
Base on your explanation, I will try to expand on the charge id and see what I get.
- 3
UPDATE: It doesnt work. I was expecting the returned objects has a charge id whi
UPDATE: It doesnt work. I was expecting the returned objects has a charge id which I can expand on but they dont. Essentially they are all payment objects returned as charge object because their id start with 'py_' instead of 'ch_' when you call the same api without the `{stripe_account: accountId}`
- 4
I think this qualifies as a bug. We called charge list and we got payment back.
I think this qualifies as a bug. We called charge list and we got payment back.
Validation
Resolved in stripe/stripe-node GitHub issue #232. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep