DonationAdditionalAmountBuilder

Donation is an additional amount which is included in Payment and CardAcquisition.

One of the key aspect - it should be included into final amount: val donationAmount = 10 val initialAmount = 20 then finalAmount you should provide in request should be val finalAmount = PaymentAmounts(amount = donationAmount + initialAmount); while additionalAmount value is still should be included into request:

PaymentRequest(
paymentAmounts = PaymentAmounts(
amount = 30,
currency = "EUR"
),
additionalAmounts = listOf(
DonationAdditionalAmountBuilder.createDonationAmount(
amount = 10
)
)
)

Functions

Link copied to clipboard
fun createDonationAmount(amount: BigDecimal, donationIdentification: String? = null): AdditionalAmount