init(nickname:number:accountType:organizationName:)
Initializes a payment account object with the specified account information.
Declaration
convenience init?(nickname: INSpeakableString, number: String?, accountType: INAccountType, organizationName: INSpeakableString?)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.
- number:
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.
Return Value
An initialized INPaymentAccount object.
Discussion
Use this method to create payment accounts associated with the user.