Square SDK and Mobile Samples
Explore samples for OAuth, Square SDK, GraphQL, and mobile.
On this page
These sample applications demonstrate a bare-bones implementation of the OAuth flow for Square APIs. Each language-specific application serves a link that directs merchants to the OAuth Permissions form and handles the result of the authorization, which is sent to your application's Redirect URL. For more information and a detailed walkthrough, see OAuth Walkthrough.
Bookings API
Node.jsCatalog API (product management samples)
JavaGift Cards API
Node.jsInvoices API
Node.jsLoyalty API (included in the order-ahead sample)
Node.jsOrders API (order-ahead sample)
Node.jsSnippets API
RubySubscriptions API
Node.jsWeb Payments SDK and Payments API (payment processing samples)
PHP Ruby Python Node.js Java .NET
Sample applications demonstrating how to use Square GraphQL queries to access data from Square APIs. Each application includes a script you can run to upload test data to your Square account.
Square and GraphQL - Code Example - Node.js program that runs sample GraphQL queries from the command line.
Square Dev GraphQL and PKCE Example Application - React Native mobile application (without Expo) that shows some use cases and implementations for GraphQL and PKCE.
Mobile Payments SDK
Android iOS Flutter React NativeIn-App Payments SDK
Android iOS Flutter React NativePoint of Sale API: Android
Bikeshop sample Hello Charge