Alipay+ DocsAlipay+ Docs

unsuspendService

Call the unsuspendService API to resume all services and tokens, including those added to Apple Wallet.

Method signature

copy
public static func unsuspendService(completion: @escaping (Result<Bool, IAPAPErrors>) -> Void)

Request parameters

Parameter

Type

Required

Description

completion

(Result<Bool, IAPAPErrors>) -> Void

Yes

An asynchronous completion callback that returns the result of calling the unsuspendService API.

Response parameters

N/A

Sample

copy
IAPApplePay.unsuspendService { result in
    switch result {
    case .success(let unsuspended):
        print("unsuspend success: \(unsuspended)")
    case .failure(let error):
        print("suspend failed: \(error)")
    }
}