{"id":1303,"date":"2025-11-10T13:56:49","date_gmt":"2025-11-10T12:56:49","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=1303"},"modified":"2025-11-14T07:37:03","modified_gmt":"2025-11-14T06:37:03","slug":"square-payment-gateway-configuration","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/square-payment-gateway-configuration\/","title":{"rendered":"Square Payment Gateway: Configuration"},"content":{"rendered":"<div class=\"tip\">\n<p><strong>Good to Know<\/strong><\/p>\n<p><a href=\"https:\/\/1.envato.market\/square-addon-chauffeur-taxi-booking-system\">Square Add-on<\/a> is a separate extension that adds native Square payment gateway support to the Chauffeur Taxi Booking System for WordPress plugin. Before configuring the add-on, make sure you have the latest version of the Chauffeur Taxi Booking System installed on your WordPress site.<\/p>\n<\/div>\n<p>The Square Add-on allows you to accept online payments processed through the <a href=\"https:\/\/developer.squareup.com\" target=\"_blank\" rel=\"noopener\">Square<\/a> platform directly in the Chauffeur Taxi Booking System booking form. Configuration consists of two main steps:<\/p>\n<ol>\n<li>Creating an application and generating credentials in your Square Developer Dashboard.<\/li>\n<li>Entering these credentials and basic settings in the booking form configuration.<\/li>\n<\/ol>\n<h2>Creating an Application and Generating Credentials in Square<\/h2>\n<p>To generate the credentials required by the plugin, follow these steps:<\/p>\n<ol>\n<li>Go to <a href=\"https:\/\/developer.squareup.com\" target=\"_blank\" rel=\"noopener\">https:\/\/developer.squareup.com<\/a> and click <mark>&#8216;Sign In&#8217;<\/mark> to log in to your Square account (or create a new account if you don\u2019t have one yet). After logging in, you will see the <strong>Applications<\/strong> page.<\/li>\n<li>Click the large <strong>+<\/strong> tile to create a new application. A popup titled <strong>Name your application<\/strong> will appear. Enter any descriptive name, for example &#8220;Chauffeur Square Payments&#8221;, and click <mark>&#8216;Next&#8217;<\/mark>.<\/li>\n<li>In the next step, <strong>What will you build first?<\/strong>, select <mark>&#8216;Accept payments&#8217;<\/mark> and click <mark>&#8216;Next&#8217;<\/mark>.<\/li>\n<li>In the <strong>Find your audience<\/strong> step, choose the option that best fits your use case (for example <mark>&#8216;Myself&#8217;<\/mark>) and click <mark>&#8216;Complete&#8217;<\/mark>.<\/li>\n<li>You will be redirected to the <strong>Credentials<\/strong> page of your new application. At the top of this page you will see a toggle <mark>&#8216;Sandbox&#8217;<\/mark> \/ <mark>&#8216;Production&#8217;<\/mark>. Choose the mode you want to work with:\n<ul>\n<li><strong>Sandbox<\/strong> \u2013 for test transactions.<\/li>\n<li><strong>Production<\/strong> \u2013 for real transactions.<\/li>\n<\/ul>\n<p>From this page, copy your <strong>Access token<\/strong> for the selected mode; it will be required later in the plugin configuration.<\/li>\n<li>In the left-hand menu of the Square Developer Dashboard, click <mark>&#8216;Locations&#8217;<\/mark>. On the <strong>Locations<\/strong> page you will find your <strong>Location ID<\/strong>. Copy the <strong>Location ID<\/strong> that you want to use for processing payments.<\/li>\n<li>In the left-hand menu, go to <mark>&#8216;Webhooks&#8217;<\/mark> -&gt; <mark>&#8216;Subscriptions&#8217;<\/mark> and click <mark>&#8216;Add subscription&#8217;<\/mark>.<\/li>\n<\/ol>\n<p>In the <strong>Add a webhook subscription<\/strong> screen, configure the following options:<\/p>\n<ul>\n<li><strong>Subscription name<\/strong> \u2013 enter any name for the webhook, for example &#8220;Chauffeur Booking Webhook&#8221;.<\/li>\n<li><strong>Notification URL<\/strong> \u2013 paste the full URL of your site that will receive webhook notifications. TIP: after installing the add-on, this URL is displayed in your WordPress dashboard under <mark>&#8216;Chauffeur Booking System&#8217;<\/mark> -&gt; <mark>&#8216;Booking Forms&#8217;<\/mark> -&gt; <mark>&#8216;Payments&#8217;<\/mark> -&gt; <mark>&#8216;Payments&#8217;<\/mark> -&gt; <mark>&#8216;Square&#8217;<\/mark> -&gt; <mark>&#8216;Notification URL&#8217;<\/mark>. You can copy the URL from there and paste it here.<\/li>\n<li><strong>API version<\/strong> \u2013 leave the default value selected.<\/li>\n<li>In the <strong>Events<\/strong> section, expand the <mark>&#8216;Payments&#8217;<\/mark> group and select:\n<ul>\n<li>payment.created<\/li>\n<li>payment.updated<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>After filling in the fields, click <mark>&#8216;Save&#8217;<\/mark>. The webhook subscription will be created and listed on the <strong>Webhook subscriptions<\/strong> page.<\/p>\n<p>Next, click the name of your newly created webhook. A panel will appear with detailed information about the subscription, including the <strong>Signature key<\/strong>. Copy this <strong>Signature key<\/strong>; it will also be needed in the plugin configuration.<\/p>\n<div class=\"tip\">\n<p><strong>Good to Know<\/strong><\/p>\n<p>You can create separate credentials and webhooks for the <strong>Sandbox<\/strong> and <strong>Production<\/strong> environments. When testing, use the sandbox access token and webhook. When going live, switch both the Square dashboard and the plugin configuration to the production values.<\/p>\n<\/div>\n<h2>Configuring Square in the Booking Form<\/h2>\n<p>Once the add-on is installed and activated, you can configure Square for each booking form individually.<\/p>\n<ol>\n<li>In your WordPress dashboard, go to <mark>&#8216;Chauffeur Booking System&#8217;<\/mark> -&gt; <mark>&#8216;Booking Forms&#8217;<\/mark>.<\/li>\n<li>Edit the booking form where you want to enable Square payments.<\/li>\n<li>Open the <mark>&#8216;Payments&#8217;<\/mark> tab of the form editor.<\/li>\n<li>Go to the sub-tab <mark>&#8216;Payments&#8217;<\/mark> and then click the <mark>&#8216;Square&#8217;<\/mark> payment method tab.<\/li>\n<\/ol>\n<p>On the <mark>&#8216;Square&#8217;<\/mark> tab you will find the following options:<\/p>\n<h3>Sandbox Mode<\/h3>\n<p>Use this option to switch between test and live environment for this booking form:<\/p>\n<ul>\n<li><strong>Enable<\/strong> \u2013 the form uses sandbox credentials and processes test transactions.<\/li>\n<li><strong>Disable<\/strong> \u2013 the form uses production credentials and processes live payments.<\/li>\n<\/ul>\n<h3>Access Token<\/h3>\n<p>Paste here the <strong>Access token<\/strong> copied from the <strong>Credentials<\/strong> page of your Square application (sandbox or production, depending on the mode you are using).<\/p>\n<h3>Location ID<\/h3>\n<p>Paste here the <strong>Location ID<\/strong> copied from the <strong>Locations<\/strong> page in your Square Developer Dashboard.<\/p>\n<h3>Signature Key<\/h3>\n<p>Paste here the <strong>Signature key<\/strong> copied from the details of your webhook subscription in the <strong>Webhooks<\/strong> section.<\/p>\n<h3>Notification URL<\/h3>\n<p>This field will be filled automatically with your site\u2019s URL used for webhook notifications. If the field is empty for any reason, paste the full URL of your site (including https:\/\/) that you used earlier when creating the webhook subscription in the Square dashboard.<\/p>\n<h3>Redirection Delay<\/h3>\n<p>Set the delay (in seconds) before the customer is redirected from the booking form to the Square gateway.<\/p>\n<h3>Logo<\/h3>\n<p>Optionally, you can upload a custom logo that will be displayed on step #3 of the booking form when the customer selects the Square payment method. If you upload a logo here, it will replace the default Square logo for this gateway in the booking form.<\/p>\n<h3>Information for the Customer<\/h3>\n<p>Use this field to display additional information to the customer before they are redirected to the Square payment page (step #5 of the booking process).<\/p>\n<h2>Enabling Square as a Payment Method<\/h2>\n<p>After entering the Square settings, you still need to enable this gateway as one of the payment options in the booking form:<\/p>\n<ol>\n<li>While still editing the booking form, go to <mark>&#8216;Payments&#8217;<\/mark> -&gt; <mark>&#8216;General&#8217;<\/mark>.<\/li>\n<li>In the <mark>&#8216;Payment&#8217;<\/mark> option, select <mark>&#8216;Square&#8217;<\/mark> as one of the available payment methods for this form.<\/li>\n<li>Optionally, set <mark>&#8216;Square&#8217;<\/mark> as the <mark>&#8216;Default Payment&#8217;<\/mark> if you want it to be preselected for customers.<\/li>\n<li>Click <mark>&#8216;Update&#8217;<\/mark> or <mark>&#8216;Publish&#8217;<\/mark> to save your changes.<\/li>\n<\/ol>\n<h2>Debugging and Log Manager<\/h2>\n<p>After installing the add-on, a new settings section will appear in your WordPress dashboard under <mark>&#8216;Settings&#8217;<\/mark> -&gt; <mark>&#8216;Chauffeur Booking System: Square&#8217;<\/mark>. This section includes a <strong>Log Manager<\/strong> tool that allows you to verify the correctness of your configuration and review any errors or warnings related to the payment process.<\/p>\n<div class=\"important\">\n<p><strong>Important!<\/strong><\/p>\n<p>Make sure that your Square account is fully activated for payments and that you are using the correct access token, location, and webhook configuration for the selected environment (sandbox or production). Incorrect or mixed credentials may cause payments to fail or webhook events not to be delivered.<\/p>\n<\/div>\n<div class=\"doc-version\">\n<p><strong>Summary<\/strong><\/p>\n<p>Document version: 1.0<br \/>\nLast updated: November 10, 2025<br \/>\nPlugin version: 9.0+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Good to Know Square Add-on is a separate extension that adds native Square payment gateway support to the Chauffeur Taxi Booking System for WordPress plugin. Before configuring the add-on, make sure you have the latest version of the Chauffeur Taxi Booking System installed on your WordPress site. The Square Add-on allows you to accept online [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"lsvr_kba_cat":[23],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/1303"}],"collection":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/comments?post=1303"}],"version-history":[{"count":6,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/1303\/revisions"}],"predecessor-version":[{"id":1326,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/1303\/revisions\/1326"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=1303"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=1303"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=1303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}