Initializer

init(payee:payer:currencyAmount:paymentMethod:note:status:)

Initializes a payment record with the specified payment details.

Declaration

convenience init?(payee: INPerson?, payer: INPerson?, currencyAmount: INCurrencyAmount?, paymentMethod: INPaymentMethod?, note: String?, status: INPaymentStatus)

Parameters

payee

The person receiving the funds.

payer

The person providing the funds.

currencyAmount

The amount being transferred.

paymentMethod

The payment method that represents the source of the funds.

note

Any notes or instructions associated with the payment. Provide notes to convey extra details about the reason for the payment.

status

The status of the transaction. For a list of possible values, see INPaymentStatus.

Return Value

An initialized payment record object.