#moustache_api

1 messages ¡ Page 1 of 1 (latest)

fierce oceanBOT
#

👋 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.

stiff heron
#

hey there, taking a look

errant lintel
#

thanks

stiff heron
#

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

errant lintel
#

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
}

stiff heron
#

Hmm that seems odd

#

You're sure that's cus_SM36FieakFgxyM?

errant lintel
#

sorry I will come back...

stiff heron
#

whats the id at stripe_data['id']?

errant lintel
#

I have a meeting

stiff heron
#

So that likely explains the mismatch here

errant lintel
#

you are right!

#

sorry about that

stiff heron
#

Double check the customer you're pulling, and where that comes from, beucase it does not match the session you shared at the start