public class InstallmentData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InstallmentData.PeriodEnum
Initial period of recurring, can be `day`, `week`, `month`, `year`
|
static class |
InstallmentData.TransTypeEnum
Gets or Sets transType
|
| Constructor and Description |
|---|
InstallmentData() |
public void setAmount(BigDecimal amount)
public InstallmentData amount(BigDecimal amount)
amount - The total transaction amount in selected currency with dot as a decimal separator, must be less than 100 millionspublic void setCurrency(String currency)
public InstallmentData currency(String currency)
currency - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency codepublic void setDynamicDescriptor(String dynamicDescriptor)
public InstallmentData dynamicDescriptor(String dynamicDescriptor)
dynamicDescriptor - Short description of the service or product, must be enabled by CardPay manager to be used.public void setGenerateToken(Boolean generateToken)
public InstallmentData generateToken(Boolean generateToken)
generateToken - This attribute can be received only in first recurring request. In all requests with recurring_id card.token can't be generated. If set to 'true', Card token will be generated and returned in GET response. Will be generated only for successful transactions (not for declined).public void setInitiator(String initiator)
public InstallmentData initiator(String initiator)
initiator - Use `cit` for initiator attribute (cardholder initiated transaction).public void setInstallmentAmount(BigDecimal installmentAmount)
public InstallmentData installmentAmount(BigDecimal installmentAmount)
installmentAmount - Amount of 1 installment payment, should be less or equal to total amount of subscription, can have dot as a decimal separator. Mandatory for Payment Page Mode only.public void setInstallmentType(String installmentType)
public InstallmentData installmentType(String installmentType)
installmentType - Installment type, 4 possible values: `IF` - issuer financed `MF_HOLD' - merchant financed hold `MF_HOLD_SPLIT' - merchant financed split `MF_WITHOUT_HOLD' - merchant financed without holdpublic void setInterval(Integer interval)
public InstallmentData interval(Integer interval)
interval - Frequency interval of period, can be 1-365 depending on selected period value. Minimum value of period + interval can be 7 days / 1 week. Maximum value of period + interval plan can be 365 days / 52 weeks / 12 months / 1 year. 1-60 minutes - for **sandbox environment** and testing purpose only.public void setNote(String note)
public InstallmentData note(String note)
note - Note about the recurring that will not be displayed to customer.public void setPayments(Integer payments)
public InstallmentData payments(Integer payments)
payments - Number of total payments to be charged per defined interval, can be 2-200. For Mexican installment subscription (installment_type = `IF`) should be 1-99.public void setPeriod(InstallmentData.PeriodEnum period)
public InstallmentData period(InstallmentData.PeriodEnum period)
period - Initial period of recurring, can be `day`, `week`, `month`, `year`public void setPreauth(Boolean preauth)
public InstallmentData preauth(Boolean preauth)
preauth - If set to `true`, the amount will not be captured but only blocked. Installment with `preauth` attribute will be voided automatically in 5 days from the time of creating the preauth transaction.public void setRetries(Integer retries)
public InstallmentData retries(Integer retries)
retries - Number of daily basis retry attempts in case of payment has not been captured successfully, from 1 to 15 attempts can be specified.public void setSubscriptionStart(OffsetDateTime subscriptionStart)
public InstallmentData subscriptionStart(OffsetDateTime subscriptionStart)
subscriptionStart - The date in yyyy-MM-dd format when subscription will actually become activated (grace period). Auth request will be created but Customer will be charged only when subscription start date comes. Leave it empty or specify the current date to activate subscription at once without any grace period applied.public void setTransType(InstallmentData.TransTypeEnum transType)
public InstallmentData transType(InstallmentData.TransTypeEnum transType)
transType - transTypeCopyright © 2021. All rights reserved.