Installment
constructor(paymentMethodId: String? = null, paymentTypeId: String? = null, issuer: Issuer? = null, processingMode: String? = null, merchantAccountId: String? = null, payerCost: List<PayerCost>? = null, agreements: List<Agreements>? = null)
Parameters
paymentMethodId
Unique identifier for the payment method (e.g., "visa", "master")
paymentTypeId
Type of payment (e.g., "credit_card", "debit_card")
issuer
Information about the card issuer or financial institution
processingMode
Mode of payment processing (e.g., "aggregator", "gateway")
merchantAccountId
Unique identifier for the merchant's account
payerCost
List of available installment options with their costs
agreements
List of agreements and terms for the payment method
Example:
val installment = Installment(
paymentMethodId = "visa",
paymentTypeId = "credit_card",
issuer = Issuer(
id = "123",
thumbnail = "https://example.com/visa.png"
),
payerCost = listOf(
PayerCost(
instalments = 1,
installmentAmount = 100.0f,
totalAmount = 100.0f
)
)
)
Content copied to clipboard