#asittingduck

1 messages · Page 1 of 1 (latest)

boreal oreBOT
oblique ledge
#

Hey there in what context are you seeing this and is in blocking any customer payments? To my knowledge this CSP error should not block any functionality

winter patrol
#

Yes it is blocking all customer payments

#

this is when I load a card element on my system. the only change I have made is to make it so the transaction actions don't start until a confirmation sweetalert says to do so. But this error is coming up before that

oblique ledge
#

Is there a page where I can access this to test myself in test mode?

winter patrol
#

Yes but you will need the password for this one, give me a moment to get you the link and the access credentials

oblique ledge
#

I suspect there might be another issue causing your problems, but happy to take a look

winter patrol
#

This is the staging site

oblique ledge
#

I sent you a friend request if you want to DM the credentials -- but make sure not to share anything sensitive

#

ok nm 😄

winter patrol
#

oh its not an issue, this is just dev credentials for the staging site

#

You will need to add a product to the cart in order for the form to show

oblique ledge
#

ok what steps should i follow to hit the issue?

winter patrol
#

then you will click "go to checkout"

#

and then open your console

oblique ledge
#

I don't see any CSP error, but when I click "place order" I hit an error:

#

ah, this is using live mode, and i tried ot use the 4242 test card

#

do you have a test/dev/staging site using test mode?

#

but in any case I didnt hit the same CSP error as you

winter patrol
#

let me build this with test creds

#

it will be about 5-8 minutes depending on recode, push, merge, and build

oblique ledge
#

when i hit the error following createPaymentMethod your code also hits a runtime error about alert.fire is not a function

winter patrol
#

Oh ok that really helps A LOT

#

thank you thank you thank you

#

Merge has taken place and building is starting, just a few more moments

oblique ledge
#

np! hope it helps figure out what's failing

winter patrol
#

ok built now

#

what the? The error has discappeared... lets see if an order can go through

#

annnnnd it works.... did you change anything?

oblique ledge
#

i did not

#

but, uh, hooray?

winter patrol
#

yeah is probably not you at all. the only thing I changed was that it was on test mode... and the error that is preventing customer transactions looks to be caused by woocommerce, not you

#

so I am letting this go, but I wanna ask what is causing that reporting error

oblique ledge
#

It's hard to say without being able to see it, but typically CSP errors are innocuous, especially [report only] ones, and something else is going on

winter patrol
#

ok thanks

#

now I have to figure out why this is happening

#

but that's on our code not yours