Hydrogen payment CORS problem

Hi,

we are now in the last stage of testing and somehow the payment does no longer work.

Current State:

  • Shopify Payments installed and test payment activated
  • Checkout goes via SHOPNAME.myshopify.com
  • Language and country settings work fine from shop to checkout

The error in Browser occurs after entering the fake mastercard code and finishing the with pay now button.

Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://cdn.shopify.com/shopifycloud/ 'report-sample'". Either the 'unsafe-inline' keyword, a hash ('sha256-KjtQb7xMxpgTpEEuTfkbxs4Xl+Os7U42w0afGQVfzCc='), or a nonce ('nonce-...') is required to enable inline execution.

You then get redirected to the checkout startscreen

If I do the same with Paypal everything runs smoothly, order is placed. Is this because of the activated test in Shopify Payments?

Damn, I just saw that test mode was not activated.

Problem is on the other side of the screen. Everything works fine.

Glad you figured this out - best of luck with the rest of your project!