Protocol

INRequestPaymentIntentHandling

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

Declaration

protocol INRequestPaymentIntentHandling

Overview

Use the methods of the INRequestPaymentIntentHandling protocol to resolve, confirm, and handle the requesting of money from another user of your app. Adopt this protocol in an object of your Intents extension that is capable of contacting the designated user and communicating the request for payment.

Siri delivers an INRequestPaymentIntent object to your handler when the user makes a request for payment using your app. The provided intent object contains the details of the payment request, including the recipient of the request, the amount of the payment, 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

Resolving the Intent Parameters

Confirming the Response

Handling the Intent

func handle(intent: INRequestPaymentIntent, completion: (INRequestPaymentIntentResponse) -> Void)

Handles sending the payment request to the designated user.

Required.

Relationships

Inherits From

See Also

Request a Payment

class INRequestPaymentIntent

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

class INRequestPaymentIntentResponse

Your app’s response to a request payment intent.