public class OneclickData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OneclickData.TransTypeEnum
Gets or Sets transType
|
| Constructor and Description |
|---|
OneclickData() |
public void setAmount(BigDecimal amount)
public OneclickData 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 OneclickData currency(String currency)
currency - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency codepublic void setDynamicDescriptor(String dynamicDescriptor)
public OneclickData dynamicDescriptor(String dynamicDescriptor)
dynamicDescriptor - Short description of the service or product, must be enabled by CardPay manager to be used.public void setFiling(RecurringRequestFiling filing)
public OneclickData filing(RecurringRequestFiling filing)
filing - Filing data, should be send in all recurring requests besides first recurring request First recurring request should be send without filing attributepublic void setGenerateToken(Boolean generateToken)
public OneclickData generateToken(Boolean generateToken)
generateToken - This attribute can be received only in first recurring request. If set to 'true', Card token will be generated and returned in GET response for all successful transactions (can't be generated for declined transactions). In all requests with filing_id card.token can't be generated.public void setInitiator(String initiator)
public OneclickData initiator(String initiator)
initiator - Can be only 2 values - 'mit' (merchant initiated transaction), 'cit' (cardholder initiated transaction).public void setNote(String note)
public OneclickData note(String note)
note - Note about the recurring that will not be displayed to customer.public void setPreauth(Boolean preauth)
public OneclickData preauth(Boolean preauth)
preauth - This parameter allowed to be used only for first recurring payment. If set to 'true', the amount will not be captured but only blocked. One-click payments with 'preauth' attribute will be captured automatically in 7 days from the time of creating the preauth transaction. In continue recurring request (with 'filing_id') this parameter shouldn't be used.public void setThreeDsChallengeIndicator(String threeDsChallengeIndicator)
public OneclickData threeDsChallengeIndicator(String threeDsChallengeIndicator)
threeDsChallengeIndicator - threeDsChallengeIndicatorpublic void setTransType(OneclickData.TransTypeEnum transType)
public OneclickData transType(OneclickData.TransTypeEnum transType)
transType - transTypeCopyright © 2022. All rights reserved.