Initializer

init(paymentRequest:)

Initializes and returns a payment authorization controller.

Declaration

init(paymentRequest request: PKPaymentRequest)

Parameters

request

The payment request to be authorized.

Return Value

The newly initialized view controller.

Discussion

If the user can’t make payments on any of the payment request’s supported networks, initialization fails and this method returns nil.

Present and dismiss the controller by calling its present(completion:) and dismiss(completion:) methods.