def confirm_order_reference(
      amazon_order_reference_id,
      success_url: nil,
      failure_url: nil,
      authorization_amount: nil,
      currency_code: @currency_code,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

      parameters = {
        'Action' => 'ConfirmOrderReference',
        'SellerId' => merchant_id,
        'AmazonOrderReferenceId' => amazon_order_reference_id
      }

      optional = {
        'SuccessUrl' => success_url,
        'FailureUrl' => failure_url,
        'AuthorizationAmount.Amount' => authorization_amount,
        'AuthorizationAmount.CurrencyCode' => currency_code,
        'MWSAuthToken' => mws_auth_token
      }

      optional['AuthorizationAmount.CurrencyCode'] = nil if authorization_amount.nil?

      operation(parameters, optional)
    end
def confirm_order_reference(
      amazon_order_reference_id,
      success_url: nil,
      failure_url: nil,
      authorization_amount: nil,
      currency_code: @currency_code,
      merchant_id: @merchant_id,
      mws_auth_token: nil
    )

      parameters = {
        'Action' => 'ConfirmOrderReference',
        'SellerId' => merchant_id,
        'AmazonOrderReferenceId' => amazon_order_reference_id
      }

      optional = {
        'SuccessUrl' => success_url,
        'FailureUrl' => failure_url,
        'AuthorizationAmount.Amount' => authorization_amount,
        'AuthorizationAmount.CurrencyCode' => currency_code,
        'MWSAuthToken' => mws_auth_token
      }

      optional['AuthorizationAmount.CurrencyCode'] = nil if authorization_amount.nil?

      operation(parameters, optional)
    end
Confirms that the order reference is free of constraints and all required
 information has been set on the order reference
 @see https://pay.amazon.com/documentation/apireference/201751630#201751980
 @param amazon_order_reference_id [String]
 @optional success_url [String]
 @optional failure_url [String]
 @optional authorization_amount [String]
 @optional currency_code [String]
 @optional merchant_id [String]
 @optional mws_auth_token [String]