Applies to: Point of Sale API - iOS
Learn about the Point of Sale API process flow and data flow.
The Point of Sale API
Applies to: Point of Sale API - iOS
Learn about the Point of Sale API process flow and data flow.
The Point of Sale API
The following example process flow shows how mobile application code interacts with the Square Point of Sale API:
The seller mobile application determines the total amount to charge a customer.
The seller mobile application packages the transaction information and sends it in a request to the Square Point of Sale application.
The mobile device running the seller mobile application automatically opens the Square Point of Sale application.
The charge amount is pre-populated in the Square Point of Sale application based on the provided transaction information.
The transaction is completed with the Square Point of Sale application checkout flow.
The Square Point of Sale application sends completed transaction information to the provided callback URL.
The device reactivates the seller mobile application to receive and display the transaction results.
If the payment is successful, the Point of Sale application response includes a transaction ID and tender IDs that can be used with other Square Connect APIs
The seller mobile application needs to package a request object with the following required information and send it to the Square Point of Sale API:
The Square Point of Sale API receives a request object with transaction information and opens the Point of Sale application prepopulated with:
Mobile applications package transaction information and send it to the Square Point of Sale application. The Point of Sale API uses URLs with custom schemes to communicate between mobile web applications and the Square Point of Sale application. Square Point of Sale accepts URLs with the scheme square-commerce-v1
and sends transaction results back to the calling application using the URL scheme.
Mobile web applications open the Point of Sale API by opening a URL with parameters that contain the required information.
If you need more assistance, contact Developer and App Marketplace Support