Square terminal Wordpress physical payments

Hi I have developed an API app to connect my square terminal to my woocommerce website and accept payments. I get the following outcome…

kiosk/:40 [WooCommerce] Dependency detection enabled. Warnings will be shown for scripts that access wc.* globals without proper dependencies.
jquery-migrate.min.js?ver=3.4.1:2 JQMIGRATE: Migrate is installed, version 3.4.1
kiosk.js?ver=1.0:3 kiosk.js loaded
kiosk.js?ver=1.0:4 KIOSK object: {ajax_url: ‘https://simopartprint-6r0ejdlrls.live-website.com/wp-admin/admin-ajax.php’, nonce: ‘b8db044ee5’}
kiosk.js?ver=1.0:23 Square response (raw): {success: false, data: Array(1)}data: Array(1)0: category: "INVALID_REQUEST_ERROR"code: "BAD_REQUEST"detail: “Merchant not authorized for device_id=122CS145A5000112”[[Prototype]]: Objectlength: 1[[Prototype]]: Array(0)success: false[[Prototype]]: Object
kiosk.js?ver=1.0:25 Square errors: [{…}]

I have double checked my location ID, device ID, application ID and Token, and still I get this.

do you think it may be I’m using a temp domain while I get my site ready?

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Develop for Japan
Developer Console
Square Developer Documentation

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

The error message you’re encountering, “Merchant not authorized for device_id=122CS145A5000112,” suggests that the device ID you’re using is not authorized for the merchant account associated with your Square application. This issue is not related to using a temporary domain for your website.

Here are a few steps you can take to troubleshoot and resolve this issue:

  1. Verify Device Authorization: Ensure that the device ID is correctly registered and authorized for use with your Square account. You can check this in the Square Dashboard under the Devices section.

  2. Check Permissions: Make sure that your application has the necessary permissions to access and use the device. This includes ensuring that the OAuth token or access token has the correct scopes for device management and payment processing.

  3. Correct Environment: Ensure that you are using the correct environment (Sandbox or Production) and that the credentials (application ID, access token) match the environment you are working in.

  4. Device Management: If you have recently added or changed devices, ensure that these changes are reflected in your Square account and that the device is properly linked to the correct location.

  5. Contact Support: If the issue persists, consider reaching out to Square Support for further assistance, as they can provide more detailed insights into your account and device configurations.

By following these steps, you should be able to identify and resolve the authorization issue with your Square device.

This answer was reviewed by @Bryan-Square.