question

jtg763 avatar image
jtg763 asked jtg763 commented

Hosted Checkout in Sandbox hasn't worked for more than 1 week.

I've successfully used Hosted clover checkout in production and sandbox for over a year.

Production hosted checkout currently works, however sandbox hosted checkout doesn't.


console on hosted checkout page for sandbox:

cloverstatic.com/web/apps/web-checkout/_config/sandboxprod.json:1     Failed to load resource: the server responded with a status of 404 ()
/invoicingcheckoutservice/v1/checkouts/cbca6336-8d56-4020-855a-cce0a2b37a7e:1     Failed to load resource: the server responded with a status of 406 (Not Acceptable)
index.tsx:81 Error fetching checkout session
Ph @ index.tsx:81
2react-dom.production.min.js:209 Error: Oops! This page could not load properly, please try again later.
    at Ph (index.tsx:82:11)
    at $a (react-dom.production.min.js:153:146)
    at ji (react-dom.production.min.js:175:309)
    at Ac (react-dom.production.min.js:263:406)
    at bs (react-dom.production.min.js:246:265)
    at Ms (react-dom.production.min.js:246:194)
    at cs (react-dom.production.min.js:239:172)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:19:467)
    at Go (react-dom.production.min.js:122:325)
oc @ react-dom.production.min.js:209
2react-dom.production.min.js:209 Error: ln must be used within a Modals
    at Ot (useSafeContext.ts:6:23)
    at ln (index.tsx:31:10)
    at wo (index.tsx:10:25)
    at $a (react-dom.production.min.js:153:146)
    at Ac (react-dom.production.min.js:261:496)
    at bs (react-dom.production.min.js:246:265)
    at Ms (react-dom.production.min.js:246:194)
    at cs (react-dom.production.min.js:239:172)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:19:467)
oc @ react-dom.production.min.js:209
useSafeContext.ts:6 Uncaught (in promise) Error: ln must be used within a Modals
    at Ot (useSafeContext.ts:6:23)
    at ln (index.tsx:31:10)
    at wo (index.tsx:10:25)
    at $a (react-dom.production.min.js:153:146)
    at Ac (react-dom.production.min.js:261:496)
    at bs (react-dom.production.min.js:246:265)
    at Ms (react-dom.production.min.js:246:194)
    at cs (react-dom.production.min.js:239:172)
    at react-dom.production.min.js:123:115
    at t.unstable_runWithPriority (scheduler.production.min.js:19:467)
sdk.js:1 Could not determine environment
t.determineEnv @ sdk.js:1
DevTools failed to load source map: Could not load content for https://checkout.sandbox.dev.clover.com/sdk.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
                 
ecommerce
5 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bryanvargas avatar image bryanvargas ♦♦ commented ·
I just ran a test and did not run into any issues, can you check to see if you are still experiencing issues.


0 Likes 0 ·
jtg763 avatar image jtg763 bryanvargas ♦♦ commented ·

Yes I'm still experiencing this only on the sandbox account. Production version of the exact same code works ok.

I've used multiple browsers on desktop as well as mobile devices, they all give the same result of the page flashing for a moment and showing blank.

I've done many tests, refreshed the token, enabled 2FA, enabled extra permissions, etc.

Seems as though the issue is in the sandbox hosted checkout.

This is what it does, it loads for a split second and you can see it like this in the screenshot, then quickly after it shows and empty page (2nd screenshot), and you can see the console errors.

1692911283052.png


1692911403600.png


0 Likes 0 ·
1692911283052.png (150.9 KiB)
1692911403600.png (401.4 KiB)
jtg763 avatar image jtg763 bryanvargas ♦♦ commented ·
This issue still persists
0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ jtg763 commented ·
Hey I just did another test. I got the same error but refreshed the page and it synced. Have you tried refreshing the page?
0 Likes 0 ·
Show more comments

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community