Your app’s response to a request payment intent.


class INRequestPaymentIntentResponse : INIntentResponse


Use an INRequestPaymentIntentResponse object to specify the details of a payment request that you make. After creating the object, assign the details of the payment transaction to the paymentRecord property, the details of which Siri communicates to the user at appropriate times.

You create an INRequestPaymentIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INRequestPaymentIntentHandling.


Initializing the Response Object

init(code: INRequestPaymentIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INRequestPaymentIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INRequestPaymentIntentResponseCode

Constants indicating the state of the response.

Accessing the Response Data

var paymentRecord: INPaymentRecord?

The details of the request.


Inherits From

Conforms To

See Also

Request a Payment

protocol INRequestPaymentIntentHandling

The handler interface for delivering a request for payment from another user of your app.

class INRequestPaymentIntent

An intent for requesting money from another user’s account.