OPPAmazonPayPaymentParams

@objc
public final class OPPAmazonPayPaymentParams : OPPPaymentParams

Class to encapsulate all necessary transaction parameters for performing AmazonPay Payments transaction.

  • AmazonPay configuration object.

    Declaration

    Swift

    @objc
    public let configuration: OPPAmazonPayConfig
  • Creates an object representing an AmazonPay 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 amazonPayPaymentParamsWith(checkoutID: String,
                                                  configuration: OPPAmazonPayConfig) throws -> OPPAmazonPayPaymentParams

    Parameters

    checkoutID

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

    configuration

    Set AmazonPay brand configuration.

    Return Value

    Returns an object representing an AmazonPay transaction.