Protocol

INSendPaymentIntentHandling

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

Overview

Use the methods of the INSendPaymentIntentHandling protocol to resolve, confirm, and handle requests to send money to another user of your app. Adopt this protocol in an object of your Intents extension that is capable of performing the financial transaction.

Siri delivers an INSendPaymentIntent object to your handler when the user asks to send a payment using your app. The provided intent object contains the details of the payment, including the recipient, the amount to transfer, and any memos associated with the payment. Use the methods of this protocol to resolve the payment parameters and to validate that the payment is possible.

Topics

Handling the Intent

func handle(intent: INSendPaymentIntent, completion: (INSendPaymentIntentResponse) -> Void)

Called when it is time for you to transfer the money between accounts.

Required.

Confirming the Response

func confirm(intent: INSendPaymentIntent, completion: (INSendPaymentIntentResponse) -> Void)

Called when it is time for you to validate the transaction and confirm the details.

Resolving Details of the Intent

Relationships

Inherits From

See Also

Send a Payment

class INSendPaymentIntent

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

class INSendPaymentIntentResponse

Your app’s response to a send payment intent.