init(payee:currencyAmount:note:)
Initializes the send payment intent object with the specified recipient and payment information.
Declaration
init(payee: INPerson?, currencyAmount: INCurrencyAmount?, note: String?)Parameters
- payee:
The person receiving the funds.
- currencyAmount:
The amount to transfer from the current user’s account to the
payee. - note:
A note to include with the payment. Use this string to convey the reason for the payment.
Return Value
An initialized intent or nil if the object could not be created.
Discussion
Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks to send a payment to another user. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.