#gouri_04972

1 messages · Page 1 of 1 (latest)

tall solsticeBOT
proven moat
#

Hi

#

I need help for Stripe API

#

Hi Orakaro

flat rampart
#

Can you provide a concrete Id?

#

Like the PaymentIntent id pi_xxx?

proven moat
#

pi_3NQKDcF5KCOPOiff0XtgHr4j

flat rampart
#

Allright, what description you want from this PI?

proven moat
#

Payment description not able to see on that

flat rampart
#

Yes but which description you expect to see?

proven moat
#

PaymentLinkCreateParams.PaymentIntentData.builder()

#

in this there is no setDescription

#

for API version 20.128.0

proven moat
flat rampart
#

Ah so you want to set a description in the first place

proven moat
#

yes

flat rampart
proven moat
#

which Stripe API version is this ?

#

because in API version 20.128.0 we dont have description

flat rampart
#

Which SDK is that?

#

Which language?

proven moat
#

I am using Stripe API version 20.128.0

proven moat
flat rampart
#

Wchich backend language do you use?

proven moat
#

Java

flat rampart
#

Oh Stripe Java?

proven moat
#

yes

flat rampart
#

Okie so it's only added recently

#

You would want to update to 24.7.0 at least

proven moat
#

ok but if we use this version then , paymentIntent is null in com.stripe.model.checkout.Session , which was not null in previous version

#

while sending the checkout request

flat rampart
#

That's a different thing... Can you provide that Checkout Session id?

proven moat
#

I have OrderId : ALBC-HKG01-71D346

#

I don't have any Checkout Session Id currently

flat rampart
#

paymentIntent is null in com.stripe.model.checkout.Session
I thought you have a Checkout Session Id here?

proven moat
#

cs_test_a1SuLYm9mepp0AMPJioPdGtNhnrpOsxU4f33DFMobW1H2qsFG7bNjNu1Ko I don't have now

#

I am not getting paymentIntentId in Checkout Session response which we need

flat rampart
#

You should get it after it's paid, on the checkout.session.completed

#

Yes that is a recent change

proven moat
#

But earlier version we are getting in capture only , which we are updating based on that in our database

flat rampart
#

Could you elaborate? which "capture only"?

proven moat
#

is there any other request where we can get the paymentIntent Id before checkout.session.completed

#

?

flat rampart
#

No, it's a spec change recently. Please modify your code to adapt to it