#sushbhat - PaymentIntent
1 messages · Page 1 of 1 (latest)
hi @mossy sparrow , could you please download the stripe sample application and try a test that requires 3DS authentication and select fail authentication.. it displays unexpected error instead of routing to return url with appropriate message
I am using java+htmml
Can you send me the link to download the sample application?
Thanks, give me a few minutes to try.
So I just tried, and this is what I see:
Do you see the same thing? And if so, what were you expecting to see instead?
yes I saw this
it should redirect to return url with the message showMessage("Your payment was not successful, please try again.");
or showMessage("Something went wrong.");
but ideally it should return to the return url i believe
No, the return_url is only used when the payment is completed. If there's an issue, we keep customer on the payment page so they can retry their payment.
So the sample application is worked as expected.
yes, one more question I have on webhook
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I am using a different framework in java and I am wondering what is the request type here?
post("/webhook", (request, response) -> {
What do you mean by "request type"?
Also have you seen our interactive tutorial here: https://stripe.com/docs/webhooks/quickstart
Whats the class of request
I am using import javax.ws.rs.core.Request; but it doesn't have any method called body
like its shown in stripe examples String payload = request.body();
👋 I'm stepping in for my colleague, the code we have in our docs is using the Spark framework
what framework/library are you using?
jersey
I'm not familiar with that framework, my best advice is to search on the internet on how to get the raw body of a Jersey request
let me know if you need any more help
sure thanks
I think I sort of figured it out. But my webhook is not getting hit properly I believe. I am able to invoke it from postman but when I try from stripe cli I don't see the log statements getting printed
here the cmd output
C:\Users\sushbhat\Downloads\stripe_1.10.3_windows_x86_64>stripe listen --forward-to localhost:8090/coreservice/webapi/webhook/paymentIntent
Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_cc67137648a742f04d52688f46c073b221b602313346fe0f677144364f7d7bb9 (^C to quit)
C:\Users\sushbhat\Downloads\stripe_1.10.3_windows_x86_64>stripe trigger payment_intent.succeeded
Setting up fixture for: payment_intent
Running fixture for: payment_intent
Trigger succeeded! Check dashboard for event details.
C:\Users\sushbhat\Downloads\stripe_1.10.3_windows_x86_64>stripe trigger payment_intent.succeeded
Setting up fixture for: payment_intent
Running fixture for: payment_intent
Trigger succeeded! Check dashboard for event details.
C:\Users\sushbhat\Downloads\stripe_1.10.3_windows_x86_64>
nvm I figured it out
thanks for the help
this can be closed