Quick start
The shortest route from a fresh installation to a tested Square payment in the sandbox, followed by the checklist for switching to real payments.
Set up the sandbox
- Install the extension and activate your licence. See Installation and Licence activation.
- At the top of the editor, choose the store you are configuring in Store.
- Open the Square connection tab. Enter the Sandbox access token and the Sandbox location ID of your Square application, and select the Sandbox location currency. Square connection explains where to find them.
- Open the Payment notifications tab. Copy the Test URL and create a webhook subscription for it in the Square Developer Console, with the events
payment.createdandpayment.updated. Copy the signature key of that subscription into Sandbox webhook signing key on the Square connection tab. See Notifications and worker. - Open the Settings tab. Leave Mode on Test, choose a Paid order status, set Payment method to Enabled and press Save settings. The message Settings saved. confirms it.
- Ask your hosting provider to create the scheduled task described in Notifications and worker.
The guided setup on screen
The Payment notifications tab repeats this route as a numbered guide in your administration language, with the URLs of the selected store ready to copy:
- Choose the store and environment
- Open the provider application
- Register the exact notification URL
- Save the verification credential
- Configure recovery with your hosting provider
- Run a complete sandbox checkout
- If the order does not update
Test in the sandbox
Make sure the currency selected in your storefront equals the Sandbox location currency, otherwise the method is not offered.
- Place an order in your storefront and choose Square as the payment method.
- Press Pay with Square. You are taken to Square's sandbox checkout. In the sandbox, Square shows its testing panel, which completes a test payment without asking for card details. No real card is needed and no money moves.
- After the test payment, Square returns you to the store and you land on the normal OpenCart success page.
- In the OpenCart order, check that the status is your Paid order status, that the history contains a line starting with
Square paid:, and that stock was reduced once. - Open Payment activity. The attempt shows Paid and confirmed.
Then repeat two more cases:
- Closed browser. Start a payment, complete it on Square, and close the tab before returning to the store. Square notifies the store and the scheduled worker confirms the order within a few minutes, without the customer.
- Abandoned payment. Start a payment and leave the Square page without paying. The OpenCart order stays unconfirmed and the attempt shows Awaiting payment.
Square's sandbox testing panel offers only a successful test payment. A declined card cannot be simulated on that page.
Going live
- In the Square Developer Console switch your application to production and copy the production access token and the location ID of the location that receives the money.
- On the Square connection tab fill in Production access token and Production location ID, and select the Production location currency.
- On the Payment notifications tab copy the Live URL. Create a production webhook subscription in Square for that URL with
payment.createdandpayment.updated, and save its signature key in Production webhook signing key. The live URL and its signature key are different from the test ones. - Add a second scheduled task with
mode=live, or change the existing one. See Notifications and worker. - On the Settings tab set Mode to Live and save.
- Check that the storefront currency equals the Production location currency and that your availability rules are the ones you want.
- Place one small real order and follow it in Payment activity and in your Square Dashboard.
Still need help?
Open a support ticket from your account and our team will look at your store with you.