OPPInstantPayPaymentParams
@objc
public final class OPPInstantPayPaymentParams : OPPBankAccountPaymentParams
Class to encapsulate all necessary transaction parameters for performing a InstantPay transaction.
-
The account number of the bank account. Either the account number or the IBAN are required.
Declaration
Swift
@objc public private(set) var routingNumber: String? { get }
-
Creates an object representing a Instant Pay 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 instantPayPaymentParams(checkoutID: String, accountHolder: String, accountNumber: String, routingNumber: String, countryCode: String) throws -> SelfParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.accountHolderThe account holder of the bank account.
accountNumberThe account number of the bank account.
routingNumberThe routing number associated with the bank account.
countryCodeThe country code associated with the bank account.
Return Value
Returns an object representing an Instant Pay transaction.
-
Creates an object representing a Instant Pay transaction.
Throws
The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) andNSLocalizedDescriptionto identify the reason of failure.Declaration
Swift
@objc public init(checkoutID: String, accountHolder: String, accountNumber: String, routingNumber: String, countryCode: String) throwsParameters
checkoutIDThe checkout ID of the transaction. Must be not
nilor empty.accountHolderThe account holder of the bank account.
accountNumberThe account number of the bank account.
routingNumberThe routing number associated with the bank account.
countryCodeThe country code associated with the bank account.
Return Value
Returns an object representing an Instant Pay transaction.
-
Checks if the routing number is valid.
Declaration
Swift
@objc public static func isRoutingNumberValid(_ routingNumber: String) -> BoolParameters
routingNumberThe routing number for validation.
Return Value
Returns
trueif the routing number is valid.
OPPInstantPayPaymentParams Class Reference