Class

INSendPaymentIntentResponse

Contains your app’s response to a send payment intent.

Overview

Use an INSendPaymentIntentResponse object to specify the details of the financial transaction that you perform. 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 INSendPaymentIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INSendPaymentIntentHandling.

Topics

Initializing the Response Object

init(code: INSendPaymentIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INSendPaymentIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INSendPaymentIntentResponseCode

Constants indicating the state of the response.

Accessing the Payment Information

var paymentRecord: INPaymentRecord?

The details of the payment transaction.

Relationships

Inherits From

Conforms To

See Also

Send a Payment

protocol INSendPaymentIntentHandling

Handles the transfer of money from the current user’s account to a different user’s account.

class INSendPaymentIntent

Requests the transfer of money from the current user’s account to a different user’s account.