Class

INSendPaymentIntentResponse

Your app’s response to a send payment intent.

Declaration

class INSendPaymentIntentResponse : INIntentResponse

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

The handler interface for transferring money from the current user’s account to a different user’s account.

class INSendPaymentIntent

A request to transfer money from the current user’s account to a different user’s account.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software