Terminal Management with myPOS iOS SDK

To ensure reliable and secure transactions, the myPOS iOS SDK provides several terminal management functions. These allow you to activate, update, or deactivate the payment terminal directly from your iOS application.

Activate Terminal

Before processing any transactions, the terminal must be activated. This process configures the terminal with the correct Terminal ID, Merchant ID, and other credentials.

[myPOSService requestActivateTerminalFromController:self withCompletion:^(NSError * _Nullable error) {
    
}];         

Use this method before any first-time payment operation or after a factory reset.

Update Terminal Software

The terminal checks for pending software updates every time a transaction is processed. If updates are available, you can trigger the update process manually using this method.

[myPOSService requestUpdateTerminalFromController:self withCompletion:^(NSError * _Nullable error) {
    
}];        

When an update is triggered, the terminal enters update mode and may temporarily become unavailable.

Deactivate Terminal

Use this method to deactivate a terminal that is no longer in use, being reassigned, or removed from service.

[myPOSService requestDeactivateTerminalFromController:self withCompletion:^(NSError * _Nullable error) {
    
}];       

Best Practice: Always confirm the terminal state in your app UI before allowing transactions or updates. Handle all completion callbacks to provide meaningful feedback to your users.