Checking Apple Pay Availability

Apple Pay is available to only a subset of iOS users. Before presenting the Apple Pay option to the user, you can use the following code to check if Apple Pay is supported:

- (void)viewDidLoad {
 self.PaysafepaymentObj = [[PaysafePaymentAuthorizationProcess alloc]init];
 if ([self.PaysafepaymentObj isApplePaySupport]){
 // Present Apple Pay as an option in your UI based on Apple's recommendations at https://developer.apple.com/apple-pay/
 } else{
 // Device does not support the Apple Pay.
 }
 }
let appDelegate = UIApplication.sharedApplication().delegate as AppDelegate
override func viewDidLoad() {
if(appDelegate.PaysafepaymentObj?.isApplePaySupport() == false){
// Present Apple Pay as an option in your UI based on Apple's recommendations at https://developer.apple.com/apple-pay/

}else{
// Device does not support the Apple Pay.
}
}

Click here to view the countries where Paysafe currently supports Apple Pay.

Did you find this page useful?