#chikyulieth-PaymentIntent
1 messages ยท Page 1 of 1 (latest)
Hi, are you able to share the request id of the example that did not work? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request What error are you seeing?
Thanks you for answer me
The example in my java code does not work
this part:
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setAmount(new Long(calculateOrderAmount(postBody.getItems())))
.setCurrency("eur")
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods
.builder()
.setEnabled(true)
.build()
)
.build();
in this page:
Configure payment methods
AutomaticPaymentMethods cannot be resolved or is not a field.
Today I put <version>20.120.0</version>
in the pom,
I had paymentMethodTypes but I need to change to automatic_payment_methods
This is the suggestion of Stripe
But does not work.
I just tested this on my own and the above code does work with version 20.120.0. It looks like you might be on an older version and that an update is needed.
Oh Sorry
I changed the version of Stripe
but I don't clean the project.
I clean the project and work
๐
fun fact: I was also testing and thought I had upgraded but I forgot to rename my jar so it was building with the old one and I thought it was broken too ๐น
Jaja
Thanks for your help. a lot of times happen that I talk with someone and I found the solution
๐