#GRIBDO
1 messages ยท Page 1 of 1 (latest)
Hi there!
It should contain the default if that payment method is being set on the Subscription
Are you setting the default on the Customer or Subscription?
Can you give me an example Sub that you are retrieving?
this is the sub from testing environment:
sub_1MRMLsL0XZrnkJmROrbs2gbQ
i have seen, some are using something like options.AddExpand("data.field"); is there any documentation about that? or can i do it without sth like that
The default_payment_method should be returned here without using expand
Can you show me the payload you get back when you retrieve the Sub?
What version of the .NET SDK are you using?
Oh
Sorry, I thought you weren't getting the ID
Yes this is an expandable property
So if you want the full object then you expand the default_payment_method
are those expandable fields described somewhere? (a list or so)
Yep in our API Ref there is an expandable tag. Ex: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
Works ๐
๐
thank you very much! have a nice evening