SIGN IN SIGN UP

Fix DeprecationWarning when encoding StripeObject metadata (fixes #1651) (#1687)

* Fix DeprecationWarning when encoding StripeObject metadata (fixes #1651)

* Suppress deprecation warnings during internal encoding to fix metadata updates

* Use getattr for id access to avoid stripe_id deprecation warning

* Handle None id values correctly in encoding

* Simplify to check hasattr(value, id) directly

---------

Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
P
Praniket Walavalkar committed
96545ffb741486ba15ff5a808520b4a46b6c85fe
Parent: 3cda55e
Committed by GitHub <noreply@github.com> on 12/23/2025, 6:55:43 AM