Package com.onlinepayments.domain
Class SurchargeSpecificOutput
java.lang.Object
com.onlinepayments.domain.SurchargeSpecificOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()The surcharge mode which defines how a merchant will apply surcharging.Object containing amount and ISO currency code attributesA summary of surcharge details used in the calculation of the surcharge amount.voidThe surcharge mode which defines how a merchant will apply surcharging.voidsetSurchargeAmount(AmountOfMoney value) Object containing amount and ISO currency code attributesvoidsetSurchargeRate(SurchargeRate value) A summary of surcharge details used in the calculation of the surcharge amount.The surcharge mode which defines how a merchant will apply surcharging.withSurchargeAmount(AmountOfMoney value) Object containing amount and ISO currency code attributeswithSurchargeRate(SurchargeRate value) A summary of surcharge details used in the calculation of the surcharge amount.
-
Constructor Details
-
SurchargeSpecificOutput
public SurchargeSpecificOutput()
-
-
Method Details
-
getMode
The surcharge mode which defines how a merchant will apply surcharging.- pass-through - Merchant to define and apply surcharge amount for a transaction for processing. This mode is not supported on Create Hosted Checkout Session.
- on-behalf-of - Merchant to instruct the payment platform to calculate and apply a surcharge amount to a transaction, based on the merchant’s surcharge configuration, net amount, and payment product type.
-
setMode
The surcharge mode which defines how a merchant will apply surcharging.- pass-through - Merchant to define and apply surcharge amount for a transaction for processing. This mode is not supported on Create Hosted Checkout Session.
- on-behalf-of - Merchant to instruct the payment platform to calculate and apply a surcharge amount to a transaction, based on the merchant’s surcharge configuration, net amount, and payment product type.
-
withMode
The surcharge mode which defines how a merchant will apply surcharging.- pass-through - Merchant to define and apply surcharge amount for a transaction for processing. This mode is not supported on Create Hosted Checkout Session.
- on-behalf-of - Merchant to instruct the payment platform to calculate and apply a surcharge amount to a transaction, based on the merchant’s surcharge configuration, net amount, and payment product type.
-
getSurchargeAmount
Object containing amount and ISO currency code attributes -
setSurchargeAmount
Object containing amount and ISO currency code attributes -
withSurchargeAmount
Object containing amount and ISO currency code attributes -
getSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE -
setSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE -
withSurchargeRate
A summary of surcharge details used in the calculation of the surcharge amount. null if result = NO_SURCHARGE
-