The following information is only relevant if you want to support the SumUp Air Register device. For general setup instructions, please refer to our main README.
After integrating the SumUp SDK, please perform this step, regardless of your chosen integration option:
-
Add the following
UISupportedExternalAccessoryProtocols
to your app's Info.plist file:com.sumup.control com.sumup.printing com.sumup.air_data
You can add these protocols to the Swift sample app for a working register demo screen.
When your app communicates with the SumUp Air Register, which is an approved MFi device, Apple requires your application to be registered before submission to the App Store. This registration process officially associates your app with SumUp Air Register, and can only be performed by SumUp. Once your application has been registered, future app versions will not require additional registrations. Please get in touch with integration@sumup.com providing your bundle identifier and team ID before submission.
This step is only required to publish your app on the App Store. For Ad-Hoc builds and Enterprise Distribution this is not necessary.
Before accessing [SMPSumUpRegisterSDK sharedInstance]
, call [SMPSumUpRegisterSDK registerIsSupported]
to verify that you have set up the register SDK correctly.
The SumUp Air Register is automatically used as the preferred card terminal while it is
connected. To use the integrated printer and query its current status, use the
SumupRegisterSDK
class. Please make sure that all
UISupportedExternalAccessoryProtocols
are included in your apps
Info.plist.
[[SMPSumUpRegisterSDK sharedInstance] setDelegate:self];
[[SMPSumUpRegisterSDK sharedInstance] startListeningForRegister];
- (void)registerDidConnect:(SMPRegisterSDKStatus *)deviceStatus {
[[SMPSumUpRegisterSDK sharedInstance] printEscPos:@"Device is conntected"];
}
The register-specific APIs are available without login.