OPPChinaUnionPayPaymentParams

@objc
public final class OPPChinaUnionPayPaymentParams : OPPPaymentParams, NSCopying

Class to encapsulate all necessary transaction parameters for performing a China UnionPay (UPOP) transaction.

  • Holder of the account. The length must be greater than 3 characters and less then 128 character.

    Declaration

    Swift

    @objc
    public private(set) var holder: String { get }
  • Creates an object representing a China UnionPay 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 chinaUnionPayPaymentParams(checkoutID: String, holder: String?) throws -> Self

    Parameters

    checkoutID

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

    holder

    Holder of the card account.

    Return Value

    Returns an object representing a China UnionPay transaction.

  • Creates an object representing a China UnionPay 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 init(checkoutID: String, holder: String?) throws

    Parameters

    checkoutID

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

    holder

    Holder of the card account.

    Return Value

    Returns an object representing a China UnionPay transaction.

  • Checks if the holder name is filled with sufficient data to perform a transaction.

    Declaration

    Swift

    @objc
    public static func isHolderValid(_ holder: String) -> Bool

    Parameters

    holder

    Holder of the card account.

    Return Value

    Returns true if the holder name length greater than 3 characters and less than 128 character.