#moustache_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1375103522269565050
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, taking a look
thanks
Where are you looking and seeing the customer invoice settings default PM empty?
Looking at the session you shared, i see that PM set as both the subscription default PM on sub_1RRL0QFmfYMJ873ayFmX5EZQ
and on the customer as the invoice default PM
In [9]: stripe_data = stripe.Customer.retrieve(c.stripe_id, expand=['subscriptions', 'sources'], stripe_account = client.stripe_account_id)
In [10]: stripe_data['invoice_settings']
Out[10]:
<StripeObject at 0x7f0674af1308> JSON: {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
}
sorry I will come back...
whats the id at stripe_data['id']?
I have a meeting
Looking at the request logs, it appears you're retrieving a different customer: https://dashboard.stripe.com/logs/req_FQnbGE7dObyaU1
cus_SLxS3IyFC151Fj
So that likely explains the mismatch here
Double check the customer you're pulling, and where that comes from, beucase it does not match the session you shared at the start