Accepting Payments with Square Up
To start accepting payments with Square you need to copy Square API keys in Agiled.
Go to Settings - Payment Gateways from your agiled account ,click the tab Square and paste your API keys from Square.


Click save and start accepting payments with Square.
How to Obtain API Keys from Square
Square provides API keys that developers can use to integrate payment processing, customer management, and other business-related functions into their applications. To get started with Square APIs, you need to obtain an API key from the Square Developer Dashboard.
Step 1: Create a Square Account
- Visit the Square website.
- Sign up for a Square account if you don’t have one. If you already have an account, simply log in.
- Navigate to the Square Developer Dashboard.
Step 2: Create an Application
- In the Developer Dashboard, click on Apps in the top menu.
- Click Create an Application.
- Enter a name for your application (e.g., "My Payment App") and click Create Application.
- You will be redirected to the application details page where you can see your application settings.
Step 3: Obtain API Keys
- In your application details page, go to the Credentials tab.
- Here, you’ll find both Sandbox and Production credentials:
- Access Token: This is your secret key to authenticate API calls.
- Application ID: This is a public identifier for your app.
- Use the Sandbox credentials for testing and Production credentials when you are ready to go live.
- Copy these keys and store them securely as they are required to authenticate your API calls.
How to Add a Webhook in Square
Webhooks are used to receive real-time notifications about events happening in your Square account, such as payment.updated , order.updated , and more. Here’s how to set up a webhook in Square.
Step 1: Go to Webhook Settings
- In the Square Developer Dashboard, navigate to your application.
- Click on the Webhooks tab.
Step 2: Create a Webhook Subscription
- Click Add Endpoint to create a new webhook endpoint.
- Enter the Webhook URL shown on your Square configuration page . This should be an HTTPS endpoint (e.g.,
https://my.agiled.app/square/webhook/{id}). - Select the latest API Version.
Step 3: Select Events to Subscribe
- Choose the events you want to subscribe to. For example, to listen for payment updates, select
invoice.payment_made. - You can select multiple events if needed.
Step 5: Save the Webhook
- Click Save to create the webhook endpoint.
- You can now test the webhook setup using tools like Postman or Square's webhook testing feature to simulate events.