OPPBankAccountPaymentParams
@objc
public class OPPBankAccountPaymentParams : OPPPaymentParams
Class to encapsulate all necessary transaction parameters for performing an Blik transaction.
-
The name of the bank account holder.
Declaration
Swift
@objc public private(set) var holder: String? { get } -
The iban (International Bank Account Number) associated with the bank account.
Declaration
Swift
@objc public private(set) var iban: String? { get } -
The account number of the bank account. Either the account number or the IBAN are required.
Declaration
Swift
@objc public private(set) var accountNumber: String? { get } -
The country code of the bank account (ISO 3166-1).
Declaration
Swift
@objc public private(set) var country: String? { get } -
The name of the bank which holds the account.
Declaration
Swift
@objc public private(set) var bankName: String? { get } -
The BIC (Bank Identifier Code (SWIFT)) number of the bank account. Either the bankCode or the BIC are required.
Declaration
Swift
@objc public private(set) var bic: String? { get } -
The code associated with the bank account. Either the bankCode or the BIC are required.
Declaration
Swift
@objc public private(set) var bankCode: String? { get } -
Default is
false. Iftrue, the payment information will be stored for future use.Declaration
Swift
@objc public private(set) var isTokenizationEnabled: Bool { get }
-
Creates an object representing a SEPA direct debit transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public class func directDebitSEPAPaymentParams(withCheckoutID checkoutID: String, holder: String, iban: String, tokenizationEnabled: Bool) throws -> OPPDirectDebitSEPAPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.holderThe name of the bank account holder.
ibanThe IBAN (International Bank Account Number) associated with the bank account.
tokenizationEnabledIf
true, the payment information will be stored for future use.Return Value
Returns an object representing a SEPA direct debit transaction, and
nilif parameters are invalid. -
Creates an object representing a SOFORT banking transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public class func sofortBankingPaymentParams(withCheckoutID checkoutID: String, country: String) throws -> OPPSofortBankingPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.countryThe country code of the bank account (ISO 3166-1).
Return Value
Returns an object representing a SOFORT banking transaction, and
nilif parameters are invalid. -
Creates an object representing an IDEAL 1.0 transaction. This method is deprecated. Use `idealPaymentParamsWithCheckoutID:country:error:‘ instead.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@available(*, deprecated, message: "Use `idealPaymentParamsWithCheckoutID:country:error:` instead.") @objc public class func idealPaymentParams(withCheckoutID checkoutID: String, bankName: String) throws -> OPPIdealPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.bankNameThe name of the bank which holds the account.
Return Value
Returns an object representing an IDEAL transaction, and
nilif parameters are invalid. -
Creates an object representing an IDEAL 2.0 transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public class func idealPaymentParams(withCheckoutID checkoutID: String, country: String) throws -> OPPIdealPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.countryThe country code of the bank account in the following format [a-zA-Z]{2} (ISO 3166-1).
Return Value
Returns an object representing an IDEAL transaction, and
nilif parameters are invalid. -
Creates an object representing a Giropay transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public class func giropayPaymentParams(withCheckoutID checkoutID: String, bic: String?, bankCode: String?, iban: String?, accountNumber: String?) throws -> OPPGiropayPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.bicThe BIC (Bank Identifier Code (SWIFT)) number of the bank account. Either the bankCode or the BIC are required.
bankCodeThe code associated with the bank account. Either the bankCode or the BIC are required.
ibanThe IBAN (International Bank Account Number) associated with the bank account.
accountNumberThe account number of the bank account.
Return Value
Returns an object representing a Giropay transaction, and
nilif parameters are invalid. -
Creates an object representing a Paytrail transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public class func paytrailPaymentParams(withCheckoutID checkoutID: String) throws -> OPPPaytrailPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.Return Value
Returns an object representing a Paytrail transaction, and
nilif parameters are invalid. -
Creates an object representing a FPX transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public static func fpxPaymentParams(checkoutID: String, bankName: String) throws -> OPPBankAccountPaymentParamsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.bankNameThe name of the bank which holds the account.
Return Value
Returns an object representing a FPX transaction, and
nilif parameters are invalid.
-
Checks if the bank account holder name is filled with sufficient data to perform a transaction.
Declaration
Swift
@objc public static func isHolderValid(_ holder: String) -> BoolParameters
holderThe name of the bank account holder.
Return Value
Returns
trueif the holder name contains more than 4 characters, up to 128 characters. -
Checks if the IBAN is valid. The first two 2 characters specify the country code as of ISO 3166-1 alpha-2. Only letters. The next 2 characters specify the check digits for a sanity check. Only digits. The remaining characters up to 27 characters specify the Basic Bank Account Number (“BBAN”). Both letters & digits allowed.
Declaration
Swift
@objc public static func isIBANValid(_ iban: String) -> BoolParameters
ibanInternational Bank Account Number.
Return Value
Returns
trueif the IBAN meets the criteria described above. -
Checks if the account number is valid.
Declaration
Swift
@objc public static func isAccountNumberValid(_ accountNumber: String) -> BoolParameters
accountNumberThe account number of the bank account.
Return Value
Returns
trueif the account number is valid. -
Checks if the country code matches ISO 3166-1 two-letter standard.
Declaration
Swift
@objc public static func isCountryValid(_ country: String) -> BoolParameters
countryThe country of the bank account.
Return Value
Returns
trueif the country code matches ISO 3166-1 two-letter standard. -
Checks if the name of the bank is valid.
Declaration
Swift
@objc public static func isBankNameValid(_ bankName: String) -> BoolParameters
bankNameThe name of the bank which holds the account.
Return Value
Returns
trueif the name of the bank is valid. -
Checks if the BIC is valid.
Declaration
Swift
@objc public static func isBICValid(_ bic: String) -> BoolParameters
bicThe BIC (Bank Identifier Code (SWIFT)) number of the bank account.
Return Value
Returns
trueif the BIC is valid. -
Checks if the bank code is valid.
Declaration
Swift
@objc public static func isBankCodeValid(_ bankCode: String) -> BoolParameters
bankCodeThe code associated with the bank account.
Return Value
Returns
trueif the bank code is valid.
OPPBankAccountPaymentParams Class Reference