EnhancedPaymentDataInput Class

Sends enhanced payment data, including Level 2 and Level 3 fields, to the gateway adapter as part of the service call.

CommercePayments

Supported only for third-party payment gateways; not supported for native payments.

The following are properties for EnhancedPaymentDataInput.

Map of gateway-specific or custom fields.

public Map<String,String> additionalAttributes {get; set;}

Type: Map<String,String>

Discount amount.

public Double discountAmount {get; set;}

Type: Double

The total amount charged as duty or import or export tariffs on the transaction.

public Double dutyAmount {get; set;}

Type: Double

Invoice number associated with the payment.

public String invoiceNumber {get; set;}

Type: String

Collection of individual line items associated with the payment.

public List<commercepayments.LineItemInput> lineItems {get; set;}

Type: List<commercepayments.LineItemInput>

Customer reference or identifier.

public String referenceId {get; set;}

Type: String

Sales tax amount.

public Double salesTaxAmount {get; set;}

Type: Double

Origin postal code.

public String shipFromZip {get; set;}

Type: String

Destination country code.

public String shipToCountry {get; set;}

Type: String

Destination postal code.

public String shipToZip {get; set;}

Type: String

Shipping or freight amount.

public Double shippingAmount {get; set;}

Type: Double

Percentage rate of tax applied to the transaction or line item.

public Double taxRate {get; set;}

Type: Double

Total tax amount for the transaction.

public Double totalTaxAmount {get; set;}

Type: Double

The following are methods for EnhancedPaymentDataInput.

  • equals(obj)

    Maintains the integrity of lists of type EnhancedPaymentDataInput by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

  • hashCode()

    Maintains the integrity of lists of type EnhancedPaymentDataInput.

  • toString()

    Converts a date to a string.

Maintains the integrity of lists of type EnhancedPaymentDataInput by determining the equality of external objects in a list. This method is dynamic and based on the equals method in Java.

public Boolean equals(Object obj)

  • obj: Type: Object External object whose key is to be validated.

Type: Boolean

Maintains the integrity of lists of type EnhancedPaymentDataInput.

public Integer hashCode()

Type: Integer

Converts a date to a string.

public String toString()

Type: String