#jamie_97274
1 messages · Page 1 of 1 (latest)
default_payment_method is expandable if you have a default PM set: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So something like..
$this->stripe->subscriptions->retrieve($id, ['expand' => ['default_payment_method']]);?
Yup, should work as per: https://stripe.com/docs/api/expanding_objects?lang=php
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.