OPPRatePayPaymentParams

@interface OPPRatePayPaymentParams : OPPPaymentParams

Class to encapsulate all necessary transaction parameters for performing an RatePay transaction.

  • Creates an object representing a Ratepay transaction.

    Declaration

    Objective-C

    + (nullable instancetype)
        ratePayPaymentParamsWithCheckoutID:(nonnull NSString *)checkoutID
                               dateOfBirth:(nullable NSDate *)dateOfBirth
                                     error:(NSError *_Nullable *_Nullable)error;

    Parameters

    checkoutID

    The checkout ID of the transaction. Must be not nil or empty.

    dateOfBirth

    Date of Birth of the user.

    error

    The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) and NSLocalizedDescription to identify the reason of failure.

    Return Value

    Returns an object representing a Ratepay transaction.

  • Creates an object representing a Ratepay transaction.

    Declaration

    Objective-C

    - (nullable instancetype)initWithCheckoutID:(nonnull NSString *)checkoutID
                                    dateOfBirth:(nullable NSDate *)dateOfBirth
                                          error:
                                              (NSError *_Nullable *_Nullable)error;

    Swift

    init(checkoutID: String, dateOfBirth: Date?) throws

    Parameters

    checkoutID

    The checkout ID of the transaction. Must be not nil or empty.

    dateOfBirth

    Date of Birth of the user.

    error

    The error that occurred while validating payment parameters. See code attribute (OPPErrorCode) and NSLocalizedDescription to identify the reason of failure.

    Return Value

    Returns an object representing a Ratepay transaction.