Skip to content

Commit

Permalink
Update @available annotations for watchOS in PaySession.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbart01 committed Sep 26, 2017
1 parent d4526dc commit 952b37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Pay/PaySession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ extension PaySession: PKPaymentAuthorizationControllerDelegate {
// -------------------------------------------------------
// MARK: - PKPaymentAuthorizationControllerDelegate -
//
@available(iOS 11.0, *)
@available(iOS 11.0, watchOS 4.0, *)
public func paymentAuthorizationController(_ controller: PKPaymentAuthorizationController, didAuthorizePayment payment: PKPayment, handler completion: @escaping (PKPaymentAuthorizationResult) -> Void) {
self.paymentAuthorizationController(controller, didAuthorizePayment: payment) { (status: PKPaymentAuthorizationStatus) in
let result = PKPaymentAuthorizationResult(status: status, errors: nil)
Expand Down Expand Up @@ -229,7 +229,7 @@ extension PaySession: PKPaymentAuthorizationControllerDelegate {
})
}

@available(iOS 11.0, *)
@available(iOS 11.0, watchOS 4.0, *)
public func paymentAuthorizationController(_ controller: PKPaymentAuthorizationController, didSelectShippingContact contact: PKContact, handler completion: @escaping (PKPaymentRequestShippingContactUpdate) -> Void) {

self.paymentAuthorizationController(controller, didSelectShippingContact: contact) { status, shippingMethod, summaryItems in
Expand Down Expand Up @@ -312,7 +312,7 @@ extension PaySession: PKPaymentAuthorizationControllerDelegate {
})
}

@available(iOS 11.0, *)
@available(iOS 11.0, watchOS 4.0, *)
public func paymentAuthorizationController(_ controller: PKPaymentAuthorizationController, didSelectShippingMethod shippingMethod: PKShippingMethod, handler completion: @escaping (PKPaymentRequestShippingMethodUpdate) -> Void) {
self.paymentAuthorizationController(controller, didSelectShippingMethod: shippingMethod) { status, summaryItems in
let result = PKPaymentRequestShippingMethodUpdate(paymentSummaryItems: summaryItems)
Expand Down

0 comments on commit 952b37c

Please sign in to comment.