Taking payments
Connect Square to your app
What is Square?
Square lets a business take card payments and manage orders, and its API lets your app do the same.
- What it costs
- A Square developer account and the Sandbox (practice mode) are free. For real payments Square takes a fee from each one; for developer API payments in the US that is 2.6% + 15¢ for in-person cards and 2.9% + 30¢ online.
- Time needed
- About 10 minutes for a practice (Sandbox) access key. Real payments need your Square account to be activated first.
- If you skip it
- Your app still works. Only taking Square payments and reading Square orders stays off until you connect it.
What you can build with Square
How to get it, step by step
Create your account
- Open squareup.com/signup?v=developers and create a Square Developer account. Enter your name, email, a password and your country, then accept the terms.
- Type a business name and an application name when asked. Square then opens your new application in the Developer Console. If you already have a Square account, sign in to the Developer Console and open your application from the Applications page.
Get the access token
- In your application, choose Credentials in the left pane.
- To try things safely, choose Sandbox at the top and copy the Sandbox access token. No real money moves in Sandbox.
- For real payments, first activate your Square account at squareup.com/activation. Then choose Production at the top of the Credentials page, press Show next to Production Access token and copy it.
Put it in BooDoo
- Paste the token into the box for SQUARE_ACCESS_TOKEN in BooDoo.
Which value goes in which box
- Access token
SQUARE_ACCESS_TOKENKeep private - In the Square Developer Console, open your application, choose Credentials, pick Production at the top, and press Show next to Production Access token. This one is secret.
Watch out for
- A Sandbox token does not work for real payments, and a Production token does not work in Sandbox. Use the one that matches.
- The Production access token is secret. Keep it private, like a password.
- Square's pages list payment support for the US, Canada, the UK, Ireland, France, Spain, Japan and Australia. If your business is elsewhere, check that Square can take payments in your country before you start.