#sushbhat - PaymentIntent

1 messages · Page 1 of 1 (latest)

mossy sparrow
#

Hi there!

#

Can you try to summarize your issue here?

strange lark
#

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

mossy sparrow
#

Can you send me the link to download the sample application?

strange lark
#

please select java+html

mossy sparrow
#

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?

strange lark
#

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

mossy sparrow
#

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.

strange lark
#

ok

#

thanks

mossy sparrow
#

So the sample application is worked as expected.

strange lark
#

yes, one more question I have on webhook

#

I am using a different framework in java and I am wondering what is the request type here?

#

post("/webhook", (request, response) -> {

mossy sparrow
#

What do you mean by "request type"?

strange lark
#

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();

molten cave
#

👋 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?

strange lark
#

jersey

molten cave
#

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

strange lark
#

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