#dupont-price-description

1 messages · Page 1 of 1 (latest)

daring tusk
#

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?

dawn cove
#

It can be both, I'm working on balance transaction objects

#

And I need to know the details

daring tusk
#

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

dawn cove
late scroll
#

@dawn cove are you using Checkout for your one off payments?

dawn cove
#

yes

late scroll
#

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

#

misentered, editing above^ (done)

dawn cove
#

So I need to re-do several calls for each balance transaction linked to one-off payment ?

late scroll
#

well not re-do, they're new calls you weren't making before right?
But yes it means additional API calls after listing BTs

dawn cove
#

Yes ok clear

#

Thanks for the help

#

Best regards