The Squareup framework was developed to support the platform for iOS-based devices. It provides full support for the squareup API, implementing all functions except for the terminal/online/auth API.
- Minimum Swift Version - 5.0
- Deployment target - 13.0
Please, let me know here
import Squareup
// setup Squareup
let APPLICATION_ID = "<#APPLICATION_ID#>"
let SQUARE_LOCATION_ID = "<#SQUARE_LOCATION_ID#>"
let ACCESS_TOKEN = "<#ACCESS_TOKEN#>"
SquareupConfigurer.shared.setup(applicationId: APPLICATION_ID,
squareLocationId: SQUARE_LOCATION_ID,
type: .dev)
BusinessApi.locations.listLocations(accessToken: ACCESS_TOKEN, completion: { response in
print(response.locations)
}) { error in
print(error.localizedDescription)
}
More examples you can find in Tests folder.
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'
use_frameworks!
target 'MyApp' do
pod 'Squareup', '~> 1.0.7'
end
If you prefer not to use any of the aforementioned dependency managers, you can integrate Squareup into your project manually. Just copy all the folders and files from here
Squareup/Squareup/Classes/1.0
and paste them into your project.
-
PaymentsApi. This includes support for the following subsections:
-
OrdersApi. This includes support for the following subsections:
-
CustomersApi. This includes support for the following subsections:
-
GiftCardsApi. This includes support for the following subsections:
-
BookingsApi. This includes support for the following subsections:
-
BusinessApi. This includes support for the following subsections:
-
TeamApi. This includes support for the following subsections: