-
Notifications
You must be signed in to change notification settings - Fork 11
Connecting
Diego Curbelo edited this page Jan 24, 2024
·
1 revision
Using the "Connect" button in the plugin will connect to a Square production account with default OAuth scopes requested.
We can manually override the connection to a test app/account if required. You can use the following snippet:
add_filter( 'wc_square_access_token', function() {
return ''; // TODO: fill this with the current access token at connect.squareup.com
} );
add_filter( 'wc_square_application_id', function() {
return ''; // TODO: fill this with the current application ID at connect.squareup.com
} );
If you want to test sandbox payments, you can also set these values to the sandbox credentials from the same screen, though the catalog API will not be available.