daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if PKPaymentAuthorizationViewController.canMakePayments(usingNetworks: supportedPaymentNetworks) {
  2.              let request = PKPaymentRequest(
  3.              request.merchantIdentifier = "merchant.com.my_app_identifier"
  4.              request.merchantCapabilities = .capability3DS
  5.              request.countryCode = "RU"
  6.              request.currencyCode = "RUR"
  7.  
  8.              request.supportedNetworks = supportedPaymentNetworks
  9.              request.paymentSummaryItems = [PKPaymentSummaryItem(label: egrn.name, amount: NSDecimalNumber(value: price))]
  10.  
  11.              let applePayController = PKPaymentAuthorizationViewController(paymentRequest: request)!
  12.              applePayController.delegate = delegate
  13.              self.present(applePayController, animated: true, completion: nil)
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top