---
title: "init(paymentRequest:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkpaymentauthorizationviewcontroller/init(paymentrequest:)"
---

# init(paymentRequest:)

Initializes and returns a payment authorization view controller.

## Declaration

```swift
init?(paymentRequest request: PKPaymentRequest)
```

## Parameters

- `request`: The payment request to be authorized.

## Return Value

Return Value The newly initialized view controller.

## Discussion

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 view controller using the appropriate mechanism and style for the current device idiom.

## See Also

### Creating a payment authorization view controller

- [init(disbursementRequest:)](passkit/pkpaymentauthorizationviewcontroller/init(disbursementrequest:).md)
