Releases: square/SquarePointOfSaleSDK-iOS
PayPay Tender Support
Adds support for PayPay tender in the Square Point of Sale SDK.
iOS Version Bump & Minor Validation fixes
3.5.3 bump version to 3.5.3
Swift Package Manager Support
- Introduces support for Swift Package Manager
- Adds
setApiVersion
method to override which API version to use
Migrate Deployment Target to iOS 12 and greater
Merge pull request #103 from square/msilvis/bump-deployment-target Bump the min deployment target to 12
Update APIs to more closely match Square
Merge pull request #92 from square/msilvis/bump-version bump the version to 3.5.0 to pick up the latest changes;
Support Xcode 12
This release resolves an issue around Xcode 12 incorrectly building open URLS
Further iOS 13 Support
With iOS 13, Apple removed the Source Application when app switching between apps that are not your own. This release adds a new helper function that allows you to easily detect if your app is opening from a Square app switch.
Updated AppDelegate.swift with new SCAPIResponse.isSquareResponse
handler.
func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
guard SCCAPIResponse.isSquareResponse(url) else {
return
}
do {
let response = try SCCAPIResponse(responseURL: url)
if let error = response.error {
// Handle a failed request.
print(error.localizedDescription)
} else {
// Handle a successful request.
}
} catch let error as NSError {
// Handle unexpected errors.
print(error.localizedDescription)
}
return true
}
Add ability to skip receipt and disable Card Not Present payments
Adds the following properties to SCCAPIRequest
:
disablesKeyedInCardEntry
- If YES, Point of Sale will not display the option to manually key-in a credit card number. Defaults to NO.skipsReceipt
- If YES, Point of Sale will not skip the receipt screen of the payment flow. Defaults to NO.
Add error for missing Info.plist key
Show an error if you're missing square-commerce-v1
in your Info.plist file's LSApplicationQueriesSchemes
, since this is necessary to launch Square Point of Sale. Rename the misnamed SCCErrorCodeCannotPerformRequest
error to SCCErrorCodeCannotOpenApplication
.
Rename merchant_id to location_id
Rename the misnamed merchant_id
API request parameter to location_id
. The identifier for the business location that Square Point of Sale application is logged in to must match the value of this parameter.