Square API Version

Setting and changing the API version for Square

This content applies to Square Webpay only.

Please note the specific versions below are examples only - the current versions use different dates. Be sure to get the correct API version for your copy of Square WebPayments.

Your API version is set in the file includes/modules/payment/square_webPay/square/square/src/ConfigurationDefaults.php

It looks like this:

    public const SQUARE_VERSION = '2024-01-18';

Be sure to specify the correct version on the Credentials page for your App when you first install Square Webpay, and every time you update the Square Webpay software. To change the version, go to https://connect.squareup.com/apps, select your app and click the “Change version” button under the “API version” heading.

Square API Version

To change the API version, go to https://connect.squareup.com/apps and click on the app you want to update (remembering that the live and the test app, if one exists, will be separate).

Then, under the heading API Version, click the Change Version button. Set it to the version in the file shown above.

Remember that the API Version may be different for Sandbox vs Production.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified December 23, 2024 by Scott Wilson (02106c7).