Initializer

init(nickname:number:accountType:organizationName:balance:secondaryBalance:)

Initializes a payment account object with the specified account information.

Declaration

init(nickname: INSpeakableString, number: String?, accountType: INAccountType, organizationName: INSpeakableString?, balance: INBalanceAmount?, secondaryBalance: INBalanceAmount?)

Parameters

nickname

A user-defined name that identifies the account in your app. Never include account numbers or other potentially sensitive user information in this parameter.

accountNumber

A string to help the user differentiate between similar accounts. Typically, you use this parameter to specify only the last few digits of the user's account. Never specify the user's full account number.

accountType

The type of the account. Typical account types include checking accounts, savings accounts, credit accounts, and many others. For a complete list, see INAccountType.

organizationName

The organization that provides the account for the user. For example, this parameter might contain the name of the user's bank. Never include account numbers or other potentially sensitive user information in this parameter.

balance

The primary balance for the account.

secondaryBalance

A secondary balance associated with the account. For example, a credit card account might have points or frequent flier miles based on the user's purchases.

Return Value

An initialized INPaymentAccount object.

Discussion

Use this method to create payment accounts associated with the user.

See Also

Initializing the Payment Account

init?(nickname: INSpeakableString, number: String?, accountType: INAccountType, organizationName: INSpeakableString?)

Initializes a payment account object with the specified account information.

Deprecated