#Lenin

1 messages ยท Page 1 of 1 (latest)

balmy robinBOT
modest talon
#

Um don't think there is data.payment_method inside a Checkout Session

#

what do you want to expand exactly?

near nebula
#

line_items

#

let's ignore the data.payment_mthod for now

balmy robinBOT
gentle adder
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

gentle adder
#

i'm terribly sorry for the late reply

#

line_items are no longer expandable, instead you should use a separate API call

near nebula
#

Bu ti am able to expand via curl

gentle adder
#

it depends on the Stripe-API version

near nebula
#

I see here it says for checkout i can expand

#

is this not updated?

gentle adder
#

yes I guess so

near nebula
#

But we were depending on this property. I need to expand multiple parameters

#

Do I have to send separate calls for each?

#

I need to expand shipping_options.shipping_rate, line_items, line_items.data.price.product

#

and maybe couple more

gentle adder
#

you can expand all of the properties on the checkout session except line_items

#

when you retrieve the line_items

#

you can expand data.price.product

near nebula
#

I tried to expand shipping_options, even that I cannot expand

#

via php client

#

via curl I am able to do

gentle adder
near nebula
#

of the client?I cloned the repo a month ago

#

API version is the 2022-08

gentle adder
near nebula
#

how do I get my client to use it?

#

I am not specifying the version anywhere. Client automagically selects

gentle adder
#

sorry I need to step away, my colleague will be with you shortly

tame geyser
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

how do I get my client to use it?
You mean the frontend?

near nebula
#

No, the php client

#

the one provided by Stripe

#

i am using that in my backend server

tame geyser
#

Oh, you mean the Stripe SDK?

near nebula
#

yes

tame geyser
near nebula
#

I see ok

#

Let me try this today

#

But that still doesnt explain why the shipping_options is also not getting expanded

#

as per tarzan, it should work as only line_items behaviour got changed in the API

tame geyser
#

I am not sure exactly. Please try the new version and let us know if it works. If not, we will investigate further.

near nebula
#

ok i will try, and update here

tame geyser
#

Happy to help!