question

dcode avatar image
dcode asked

Hosted Checkout on Sandbox

Hi


I am trying to use hosted forms for the sandbox but somehow its not working, Its working fine on production but not on sandbox, I tried via code as well as the test tool available under this link


https://docs.clover.com/reference/createcheckout

Additionally everytime i refresh the page i am getting new private token under the page "

Ecommerce API Tokens"



I am getting error


Access to fetch at 'https://sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts' from origin 'https://docs.clover.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

sandbox.dev.clover.com/invoicingcheckoutservice/v1/checkouts:1 Failed to load resource: net::ERR_FAILED

8872.4e4cb97b0f743cfee750.js:1 Uncaught (in promise) TypeError: Failed to fetch

at 8872.4e4cb97b0f743cfee750.js:1:100420

at e.default (4001.a5144cb7b38362670b6b.js:7:1103073)

at routes-Reference.3db34dd3eb629685810e.js:1:174167

at Object.s (main.48a64f111c0adb16a77a.js:1:1646505)

at p (main.48a64f111c0adb16a77a.js:1:1646648)

at main.48a64f111c0adb16a77a.js:1:1646794

at v (main.48a64f111c0adb16a77a.js:1:1646880)

at st (main.48a64f111c0adb16a77a.js:1:1662396)

at it (main.48a64f111c0adb16a77a.js:1:1662206)

at lt (main.48a64f111c0adb16a77a.js:1:1662562)

at ht (main.48a64f111c0adb16a77a.js:1:1663769)

at R (main.48a64f111c0adb16a77a.js:1:1760532)

at H (main.48a64f111c0adb16a77a.js:1:1648203)

at Jt (main.48a64f111c0adb16a77a.js:1:1669727)

at Xt (main.48a64f111c0adb16a77a.js:1:1668944)

at t.unstable_runWithPriority (main.48a64f111c0adb16a77a.js:1:1797805)

at Zo (main.48a64f111c0adb16a77a.js:1:1691270)

at L (main.48a64f111c0adb16a77a.js:1:1760299)

at Yt (main.48a64f111c0adb16a77a.js:1:1668760)

Sandboxaccess token
10 |2000

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

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