#evschu_subscription-description

1 messages ¡ Page 1 of 1 (latest)

quiet crestBOT
#

👋 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/1501287178549072083

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

meager spindle
#

evschu_subscription-description

#

@distant roost can you share the exact PaymentIntent ids pi_123 or Invoice ids in_123 for the one with the wrong description and the one before that

distant roost
#

Most recent (Bad): pi_3TS5QKPHJIJnHl8d2hDMLQIA
Previous (Good): pi_3THCv0PHJIJnHl8d0jcm8e7T

distant roost
#

Is there any other information I can provide?

meager spindle
#

sorry I'm still debugging

hollow forge
distant roost
#

For the past couple of months, I've had to manually go in and updated them to the correct values. But I'm not the one setting them to "Subscription update".

#

That is happening when the subscription creates the payment intent for the next payment. That's all on Stripe's side.

#

I don't want to have to go in and manually fix these every month, so that's why I'm reaching out.

hollow forge
#

ah I see, thanks for clarifying. "Subscription update" is the default description for payment intents generated on invoices for subscriptions, I'll see if there's a way to override that behavior, one moment

distant roost
#

90+% of the time, Stripe does update it to the correct description. But for some small number it keeps the value at "Subscription update"

hollow forge
#

it keeps it that way even after your manual update?

distant roost
#

Here is an example of a good and bad payment intent. (same as I shared above)
Most recent (Bad): pi_3TS5QKPHJIJnHl8d2hDMLQIA
Previous (Good): pi_3THCv0PHJIJnHl8d0jcm8e7T

#

Some small percent of them have the description "Subscription update" instead of the product (or subscription?) name. Once a month our client does an export, and they want to see the correct description, not "Subscription update". So I go in and manually change them.

I'm trying to find out why it's set to "Subscription update" in the first place. It seems like a bug on Stripe's side since it's correct 90% of the time.

I checked other Connected accounts, and it's happening for them a small percentage of the time, too.

hollow forge
#

still looking for a solution. when you say some small percent, do you mean a small percent of subscriptions? as in, does it seem like it consistently happens to certain subscriptions? or does the behavior change between invoices of the same subscription?

distant roost
#

it happens for different subscriptions

hollow forge
#

ok, do you have an example of a subscription where it doesn't happen? I'd like to compare the two

distant roost
#

See the subscription related to this payment: pi_3THCv0PHJIJnHl8d0jcm8e7T

hollow forge
#

pi_3THCv0PHJIJnHl8d0jcm8e7T and pi_3TS5QKPHJIJnHl8d2hDMLQIA belong to the same subscription, sub_1SvnqEPHJIJnHl8d9nOJX9ZH

distant roost
#

ah, one sec...

#

This one has only good descriptions: sub_1SlapHPHJIJnHl8dePvx66CC

hollow forge
#

thank you, that's very helpful. so the main difference I'm seeing is that sub_1SlapHPHJIJnHl8dePvx66CC (the one you just provided) has the description set on creation (creation request here) and it looks like the Payment Inte]nts inherited the description from there

sub_1SvnqEPHJIJnHl8d9nOJX9ZH was created via Checkout Session (creation request here) but you can add a description via subscription_data.description (API docs here)

#

I believe that will have the desired effect, but I can test it out if you're willing to give me a few minutes

distant roost
#

let me see if we are setting that in our code...

#

our code does the same thing for all checkout sessions. I don't understand why Stripe sometimes set the payment description with the subscription name, and sometimes it just puts in "Subscription update".

#

also, this is happening on renewals, which are automatically happening on stripe's side

hollow forge
#

the subscription with good descriptions was created directly with the API, not a checkout session, with its description set to be the subscription name. for your checkout sessions, if you change your code to set subscription_data.description, that should do the same thing. I just tested it with my own integration

distant roost
#

ah, we changed to checkout sessions a couple of months ago. i can find an example of checkout session subscription that is good. one min.,,

#

OK - I see what you're saying. All the subscriptions created since we move to Checkout Session don't have the description set correctly. That's the difference. I'll update the Checkout Session code like you suggested. Thank you.

hollow forge
#

you're welcome, glad we were able to help!