Instance Method


Confirms the payment request and confirm the details.


optional func confirm(intent: INRequestPaymentIntent, completion: @escaping (INRequestPaymentIntentResponse) -> Void)



The intent object containing details about the user’s request. The information in this object has already been resolved by your handler object.


The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:


The INRequestPaymentIntentResponse object containing the details to confirm with the user. This parameter must not be nil.


Implement this method to validate that the transaction is possible. You might use this method to validate that the user’s logged in status and can request funds from other users. At some point in your implementation, execute the provided completion block with a response object containing the request details. Siri displays the provided information to the user during the confirmation process.

You specify the transaction details using an INPaymentRecord object, which you then include in your response object. Siri displays the transaction details when asking the user to confirm the payment request.