stripe / stripe-node

Node.js library for the Stripe API.
https://stripe.com
MIT License
3.89k stars 753 forks source link

refund creation doesn't pass metadata to charge.refunded event #2224

Closed tamar-yavetz closed 1 week ago

tamar-yavetz commented 2 weeks ago

Describe the bug

we are creating a refund using stripe version "^17.0.0". we are calling stripe.refunds.create function and we pass some information in the metadata object. when the refund is been created we get in the response the metadata. however when we receive the notification for charge.refunded the metadata obj is empty obj.

To Reproduce

we are creating a refund using stripe version "^17.0.0". we are calling stripe.refunds.create function and we pass some information in the metadata object. when the refund is been created we get in the response the metadata. however when we receive the notification for charge.refunded the metadata obj is empty obj.

Expected behavior

getting the metadata from charge.refunded event

Code snippets

No response

OS

macOs

Node version

Node v18.19.1

Library version

17.0.0

API version

2024-10-28.acacia

Additional context

No response

ramya-stripe commented 1 week ago

@tamar-yavetz Github issues are limited to bugs with the SDK itself. The issue you have is more related to integration that is better directed at our support team https://support.stripe.com/contact or our Discord server where we help developers: https://stripe.com/go/developer-chat