OPPInstantPayPaymentParams
@interface OPPInstantPayPaymentParams : OPPBankAccountPaymentParams
Undocumented
-
Creates an object representing a Instant Pay transaction.
Declaration
Objective-C
+ (nullable instancetype) instantPayPaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID accountHolder:(nonnull NSString *)accountHolder accountNumber:(nonnull NSString *)accountNumber routingNumber:(nonnull NSString *)routingNumber countryCode:(nonnull NSString *)countryCode error:(NSError *_Nullable *_Nullable)error;
Swift
convenience init(checkoutID: String, accountHolder: String, accountNumber: String, routingNumber: String, countryCode: String) throws
Parameters
checkoutID
The checkout ID of the transaction. Must be not
nil
or empty.accountHolder
The account holder of the bank account.
accountNumber
The account number of the bank account.
routingNumber
The routing number associated with the bank account.
error
The error that occurred while validating payment parameters. See code attribute (
OPPErrorCode
) andNSLocalizedDescription
to identify the reason of failure.Return Value
Returns an object representing a Instant Pay transaction, and
nil
if parameters are invalid.
-
The account number of the bank account. Either the account number or the IBAN are required.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *routingNumber;
Swift
var routingNumber: String? { get }
-
Checks if the routing number is valid.
Declaration
Objective-C
+ (BOOL)isRoutingNumberValid:(nonnull NSString *)routingNumber;
Swift
class func isRoutingNumberValid(_ routingNumber: String) -> Bool
Parameters
routingNumber
The routing number for validation.
Return Value
YES
if the routing number is valid.