#pulley-subscription-defaultpm

1 messages · Page 1 of 1 (latest)

vapid tulipBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

  • pulley, 6 days ago, 4 messages
vivid plank
#

What attribute are you looking at for the default? Like, where are you expecting the default to show up?

There are defaults at the Customer-level as well as at the Subscription-level, so you may have to look at both objects to find

vapid tulipBOT
silver frigate
#

pulley-subscription-defaultpm

frail mortar
#

so when i do Subscription::retrieve($id)
im looking for the default_payment_method to return. Everything seems to be correct on the customer, they have a default payment method. The subscription is using a payment method.. not sure if i am missing something

silver frigate
#

@frail mortar the Subscription will have default_payment_method: 'pm_123' set only if the Subscription has that PaymentMethod explicitly set as the default on it. If the default is set on the Customer then the Subscription will return default_payment_method: null

frail mortar
#

Got ya, is it best pracitce to use 1 over the other?

silver frigate
#

really up to you and your business