OPPAffirmPaymentParams

@objc
final public class OPPAffirmPaymentParams : OPPPaymentParams

Class to encapsulate all necessary transaction parameters for performing affirm transaction.

  • Undocumented

    Declaration

    Swift

    @objc
    public var token: String?
  • Creates an object representing an Affirm transaction.

    Throws

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

    Declaration

    Swift

    @objc
    public static func affirmPaymentParamsWith(checkoutId: String) throws -> OPPAffirmPaymentParams

    Parameters

    checkoutId

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

    Return Value

    Returns an object representing an Affirm transaction.