Payment APIs and SDKs

The Square Developer platform provides payment APIs and SDKs to add Square payments to your application. Whether buyers are paying on Square hardware or online, you can charge for a simple currency amount or a more complex order using Square-supported payment methods.

In addition to payment APIs, you can use Square commerce, customer, staff, and merchant APIs to help sellers manage all aspects of their business.

Link to section

Square products

Sellers can access and manage payments from a variety of Square products.

Square Terminal lets sellers take payments and print receipts seamlessly, all from one portable cordless device.

Sellers can take payments in offline mode for up to 24 hours. Offline payments are processed automatically when you reconnect your Square Terminal to the Internet and declined if you don't reconnect within 24 hours of taking your first offline payment.

Learn about Square Terminal

tab-image
Link to section

Take payments on hardware

Use these payment APIs and SDKs to take a payment on a Square Terminal, Square Reader, or Square Stand.

icon

Terminal API

Integrate with any web or mobile application to take payments using a Square Terminal.

icon

Mobile Payments SDK

Embed the Square payment flow directly into native iOS or Android mobile applications to take payments using a Square Reader, Square Stand, or Square Kiosk.

icon

Point of Sale API

Opens Square Point of Sale on top of a native mobile or mobile web application UI to take payments using a Square Reader, Square Stand, or Square Kiosk.

icon

Terminal API

Integrate with any web or mobile application to take payments using a Square Terminal.

icon

Mobile Payments SDK

Embed the Square payment flow directly into native iOS or Android mobile applications to take payments using a Square Reader, Square Stand, or Square Kiosk.

icon

Point of Sale API

Opens Square Point of Sale on top of a native mobile or mobile web application UI to take payments using a Square Reader, Square Stand, or Square Kiosk.

Link to section

Take payments online

Use these payment APIs and SDKs to collect payments directly within your application’s workflow or using any Internet-connected device.

icon

Web Payments SDK

Build a fully customizable checkout flow for processing payments on your web application.

icon

In-App Payments SDK

Same as the Web Payments SDK, but for native mobile applications on iOS, Android, Flutter, and React Native.

icon

Checkout API

Build an out-of-the-box checkout experience by creating a link to a Square-hosted payment page that's shareable across online channels such as email, web pages, and social media.

icon

Invoices API

Create and manage Square Invoices that request or automatically collect a payment for an order.

icon

Subscriptions API

Integrate with Square Subscriptions, allowing sellers to generate recurring revenue by offering a scheduled fulfillment of products or services.

icon

Web Payments SDK

Build a fully customizable checkout flow for processing payments on your web application.

icon

In-App Payments SDK

Same as the Web Payments SDK, but for native mobile applications on iOS, Android, Flutter, and React Native.

icon

Checkout API

Build an out-of-the-box checkout experience by creating a link to a Square-hosted payment page that's shareable across online channels such as email, web pages, and social media.

icon

Invoices API

Create and manage Square Invoices that request or automatically collect a payment for an order.

icon

Subscriptions API

Integrate with Square Subscriptions, allowing sellers to generate recurring revenue by offering a scheduled fulfillment of products or services.

Link to section

Payment management APIs

Use these APIs to manage various aspects of the payment process, such as refunds, disputes, and authorization.

icon

Payments API

Creates a payment with a secure token and manages the payment lifecycle.

icon

Refunds API

Refunds a payment made using any Square payment API or Square product.

icon

Disputes API

Manages chargebacks from a cardholder for a payment reversal when the payment is disputed.

icon

Cards API

Saves a card on file and retrieves it as a payment source when the buyer makes purchases or recurring payments.

icon

Payouts API

Provides details about the transfer of funds from a seller's Square account to their linked bank account.

icon

Bank Accounts API

Retrieves information about an external bank account linked to a Square account.

icon

Mobile Authorization API

Accepts an OAuth or personal access token, along with the location ID, and returns a code used to initialize mobile applications.

icon

Payments API

Creates a payment with a secure token and manages the payment lifecycle.

icon

Refunds API

Refunds a payment made using any Square payment API or Square product.

icon

Disputes API

Manages chargebacks from a cardholder for a payment reversal when the payment is disputed.

icon

Cards API

Saves a card on file and retrieves it as a payment source when the buyer makes purchases or recurring payments.

icon

Payouts API

Provides details about the transfer of funds from a seller's Square account to their linked bank account.

icon

Bank Accounts API

Retrieves information about an external bank account linked to a Square account.

icon

Mobile Authorization API

Accepts an OAuth or personal access token, along with the location ID, and returns a code used to initialize mobile applications.

Link to section

Payment sample applications

Get up and running quickly with Square payment APIs and see the APIs in action.

Payment Processing Sample

Demonstrates how to process card payments with the Payments API and collect payment card information with the Web Payments SDK.

Checkout API Sample

Demonstrates how to take a single payment, declared by the user, and create an order to use in the Checkout API.

In-App Payments SDK Sample

Demonstrates how to take card payments from an application on a buyer's device.

Mobile Payments SDK Sample

Demonstrates how to install, initialize, and take Sandbox payments with the Mobile Payments SDK.

Invoices API Sample

Creates an invoice for the full balance of an order and charges a card on file or sends the invoice at a scheduled date.

Subscriptions API Sample

Describes a subscription plan and allows the business to create subscriptions for its customers.

Payment Processing Sample

Demonstrates how to process card payments with the Payments API and collect payment card information with the Web Payments SDK.

Checkout API Sample

Demonstrates how to take a single payment, declared by the user, and create an order to use in the Checkout API.

In-App Payments SDK Sample

Demonstrates how to take card payments from an application on a buyer's device.

Mobile Payments SDK Sample

Demonstrates how to install, initialize, and take Sandbox payments with the Mobile Payments SDK.

Invoices API Sample

Creates an invoice for the full balance of an order and charges a card on file or sends the invoice at a scheduled date.

Subscriptions API Sample

Describes a subscription plan and allows the business to create subscriptions for its customers.

Link to section

Payment guides

Explore commonly used guides about payments pricing, availability, and requirements.

Link to section

Extend payments with other API groups

Combine payment processing with other Square APIs to streamline and improve all areas of a seller's business.

icon

Commerce × Payments

Connect payments with orders, send invoices for orders, and set up subscription plans in the catalog.

Commerce APIs

icon

Customers × Payments

Link customers to payment flows, subscriptions, and invoices and take gift card payments with automatic redemption.

Customer APIs

icon

Staff × Payments

Link team members to payments to report on per-team-member productivity, tips earned, and more.

Staff APIs

icon

Commerce × Payments

Connect payments with orders, send invoices for orders, and set up subscription plans in the catalog.

Commerce APIs

icon

Customers × Payments

Link customers to payment flows, subscriptions, and invoices and take gift card payments with automatic redemption.

Customer APIs

icon

Staff × Payments

Link team members to payments to report on per-team-member productivity, tips earned, and more.

Staff APIs