#stickyjams_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/1399592033148211354
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- stickyjams_api, 6 days ago, 62 messages
Hi there, are you talking about the description on the invoice that was generated by a subscription mode checkout session?
Can you share with me the URL of the Dashboard?
Hmm, probably? It's the description that you see in the Description column in the Transactions page
Ok, that's the PaymentIntent's description. You can change it through Dashboard, or use API to update the description
right so in my one off purchases I was able to set the payment intent description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but for the subscription I cant use payment intent details
and i tried just arbitrarily setting description but that wasnt it lol
the description i see in my product details is the one the user sees (which isnt the same thing)
Let us take a step back
sure
What and how did your customer see the description? Is it through the receipt email?
I mean that in the product details, you can set the "description" that shows up on the native checkout
but I wanna set that description that I see on the backend
I am basically looking to customize that "Subscription created" message from the picture
Ok, so it's about the product description that your customer saw on the checkout page.
no, that one is fine. I just set that in my product catalog, and all good
I was trying to distinguish that its not that one I am trying to figure out
but rather the one in my backend for the Transactions page
you are spot on with the payment intent description, but I can't use that for subscriptions
"I was trying to distinguish that its not that one I am trying to figure out
but rather the one in my backend for the Transactions page"
Can you tell me more about this, share with me a concrete example so that I understand you better?
sure, this top transaction is from a native checkout, for a subscription
I am curious how I can set that description
which currently says Subscription creation
Ok, you can't set the description upfront because the invoice and its associated payment_intent were created by the checkout, but you can still edit it after the checkout completes
Does that solve your problem?
If you want to automate the process, you should listen to checkout.session.completed event
okay, so it can't be done by default, without messing with the details after, unlike payment intent
In the event handler, you should
- Retrieve the subscription from the checkout session
- Pass the subscription's latest_invoice to this API https://docs.stripe.com/api/invoice-payment/list to get the list of invoice payments
- Retrieve the payment_intent ID (https://docs.stripe.com/api/invoice-payment/list?list_invoice_payments-payment-payment_intent)
- Call the Payment_intent update API to update its description based on pricing info in checkout sessions's line_items
okay gotcha