#dupont-price-description
1 messages · Page 1 of 1 (latest)
Hey there 👋 give me a moment to take a closer look.
Apologies for the delay, still checking.
Are these for one-off payments, or are they part of a subscription model?
It can be both, I'm working on balance transaction objects
And I need to know the details
Gotcha, for subscriptions you can step up to the Invoice object, and then check the information for lines to find the price information.
https://stripe.com/docs/api/invoices/object#invoice_object-lines
I'm still looking to see if there is a good approach for one-off payments (that is hopefully a little more universal than the above approach).
charge --> pi --> invoice --> invoice lines
it's seems ok for this one, for subscription
i'm also loolink for the one-off, but can't find a solution
@dawn cove are you using Checkout for your one off payments?
yes
gotcha so ...
the Prices live on the CheckoutSession's line items so you want to list CheckoutSessions for a PaymentIntent : https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-payment_intent
In that request, you want to expand: ['line_items'] to expand the line items on the PaymentIntent
those line items will have the Price IDs
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
misentered, editing above^ (done)
So I need to re-do several calls for each balance transaction linked to one-off payment ?
well not re-do, they're new calls you weren't making before right?
But yes it means additional API calls after listing BTs