#guillaume-javaparams-subscription
1 messages · Page 1 of 1 (latest)
Interesting. Do the rest of the param builder functions works as far as you can see?
If you try with priceData does it work?
SessionCreateParams.LineItem.builder()
.setPriceData(
SessionCreateParams.LineItem.PriceData.builder()
.setProductData(
SessionCreateParams.LineItem.PriceData.ProductData.builder()
.setName("test")
.build()
)
.setUnitAmount(1000L)
.setCurrency("usd")
.build()
)
.build()
)
.build();```
Just as a test to narrow down what may be going wrong here
all params seems to be there but not the price :
There is no setPriceData in the builder
Huh but inellesense shows other methods
It looks like those are methods for the older version of Checkout's parameters, but 24.8.0 is the latest java library which targets a 2023 version https://stripe.com/docs/upgrades#2022-08-01
Can you double check that that version of your library installed correctly?
I'll do it
it looks ok, when i run mvn dependency:tree I can see : [INFO] +- com.stripe:stripe-java:jar 24.8.0:compile...
OK I figured it out it was a problem with the download of the lib. Thanks for your help and sorry for the inconvenience.