#sushbhat-payment-intent

1 messages · Page 1 of 1 (latest)

patent briar
#

đź‘‹ Happy to help

winged bridge
#

Hello @patent briar

#

I haven't made any changes to the sample application available on stripe website, any idea about this issue?

patent briar
#

Which language are you using?

winged bridge
#

its java backend and javsrcript/html on front end

patent briar
#

Checking it now

winged bridge
#

thanks

patent briar
#

I tried from the sample and 3DS is working fine and able to redirect back successfully

#

Can you clear cookie/session and try again?

winged bridge
#

ok, let me try

#

its the same error

#

I tried on chrome and firefox

patent briar
#

Did you modify anything from the sample code?

winged bridge
#

no

#

I actually tried running the python backend also, seeing same error there

patent briar
winged bridge
#

ok..

#

but error persists

#

also whats the test card you used?

patent briar
#

I used 4000000000003063 on the sample

winged bridge
#

I checked for one the url and CSP is this for me

patent briar
#

Without adding CSP meta tag, do you see CSP header as well?

winged bridge
#

let me check

patent briar
#

by right, there shouldn't be any CSP header from sample code

winged bridge
#

and any purticular url I need to check?
Because for another url i see csp like this
content-security-policy
base-uri 'none'; connect-src 'self' https://api.stripe.com https://errors.stripe.com https://r.stripe.com; default-src 'self'; font-src 'none'; form-action 'none'; frame-src 'self'; img-src 'self' https://q.stripe.com; media-src 'none'; object-src 'none'; script-src 'self'; style-src 'self' 'sha256-0hAheEzaMe6uXIKV4EehS9pu1am1lj/KnnzrOYqckXk='; report-uri https://q.stripe.com/csp-report

patent briar
#

I'd suggest checking checkout.html after redirecting back from 3DS since it's where the issue occurs

winged bridge
#

ok

patent briar
#

which test card are you using?

winged bridge
#

I am using 4000 0035 6000 0008

#

These are the urls invoked after authenticating 3ds, i don't see any checkout.html strangely

patent briar
#

Just make sure we are looking at the same sample code, are you downloading for "Prebuilt Checkout page" or "Custom payment flow"?

winged bridge
#

"Custom payment flow"

patent briar
#

Am I right that you click Download full app from here?

winged bridge
#

yes

#

would you be available for a screen share session please?

frank tapir
#

Hi @winged bridge how do you run the python server?

#
export FLASK_APP=server.py
python3 -m flask run --port=4242

Did you execute the above command?

winged bridge
#

yes for python i did that, except its widows so I used 'set' instead of export
But I am mainly want run it in java, python i just checked to confirm error is nothing specific to language

frank tapir
#

Can you change return_url: "http://localhost:4242/checkout.html", to return_url: "http://127.0.0.1:4242/checkout.html", ?

frank tapir
#

What browser are you using? do you have any plugins installed in this browser?

winged bridge
#

I tried on chrome and firefox, firefox freshly installed so no plugins

#

I tried on vm also and host machine,

frank tapir
winged bridge
#

wait I see a Forcepoint Endpoint extension installed

#

its work laptop, does that effect?

frank tapir
#

I never used that, can you disable and try again?

winged bridge
#

I checked now on a vm that doesn't have that extension, still same error. Let me share har file

#

Is there anyway to get a screen share session from stripe poc?

frank tapir
#

We can only support you via chat or email

#

Can you also share with us the console log?

winged bridge
#

ok

frank tapir
#

Thanks can you also take a screenshot of the console log so that I can know which one is error

winged bridge
#

ok

frank tapir
#

Thanks. I don't see any CSP directives in the network response. Can you try loading your webpage in another machine in the same network?

winged bridge
#

ok, I have tried on a vm and host machine for now

#

I have tried on a different macchine as well, no luck

#

I don't know from where these CSPs are being set

#

Refused to load the image 'data:image/png;base64,iVBORw0KGgo=' because it violates the following Content Security Policy directive: "img-src 'self'".

hooks.stripe.com/:1 Refused to frame 'http://localhost:4242/' because it violates the following Content Security Policy directive: "frame-src https:".

#

I tried creating a localhost https server and hosting the checkout page, then the 2nd error goes off, one related to frame src but first one realted to img-src stays

frank tapir
#

Did you try serving the webpage from a different machine?

winged bridge
#

yes

#

so far tried on 2 windows and 1 linux machine

frank tapir
#

That't indeed very strange.

#

Is it possible for you to host your webpage to a public URL so that we can reproduce the problem?