An interface for adopting all of the protocols in the payments domain.
SDKs
- iOS 11.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 3.0–6.0Deprecated
Framework
- Intents
Declaration
protocol INPaymentsDomainHandling
Overview
The INPayments
protocol is a convenience protocol that adopts all of the protocols used to handle payment-related intents. When your app adopts all of the protocols associated with payments, you can adopt this one protocol instead of adopting the INSend
, INRequest
, INPay
, INSearch
, INSearch
, and INTransfer
protocols separately.
An object that adopts this protocol must be able to respond to the following intents:
INRequest
, a request for a payment from another user.Payment Intent INSend
, a request to send a payment to another user.Payment Intent INPay
, a request to pay a bill.Bill Intent INSearch
, a request to search for bills to pay.For Bills Intent INSearch
, a request to provide a list of the user’s accounts.For Accounts Intent INTransfer
, a request to transfer money between the designated accounts.Money Intent
Your handler object must be prepared to resolve any parameters associated with these intents and to confirm and handle the requests. When confirming and handling a request, you provide the response object that matches the specified intent.