public class PaymentRequestPaymentData extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentRequestPaymentData.TransTypeEnum
Gets or Sets transType
|
| Constructor and Description |
|---|
PaymentRequestPaymentData() |
public void setAmount(BigDecimal amount)
public PaymentRequestPaymentData amount(BigDecimal amount)
amount - The total transaction amount in selected currency with dot as a decimal separator, must be less than 100 millions If 'payment_method' = `BITCOIN` then minimum order amount is approximately 0.003 bitcoins or its equivalent. The exact value should be provided by the account manager.public void setAuthenticationRequest(Boolean authenticationRequest)
public PaymentRequestPaymentData authenticationRequest(Boolean authenticationRequest)
authenticationRequest - If set to `true`, amount must not be presented in request, no payment will be made, only cardholder authentication will be performed. Also can be used to generate token. *(for BANKCARD payment method only)*public void setCurrency(String currency)
public PaymentRequestPaymentData currency(String currency)
currency - [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency codepublic void setDynamicDescriptor(String dynamicDescriptor)
public PaymentRequestPaymentData dynamicDescriptor(String dynamicDescriptor)
dynamicDescriptor - Short description of the service or product, must be enabled by CardPay manager to be used *(for BANKCARD payment method only)*public void setEncryptedData(String encryptedData)
public PaymentRequestPaymentData encryptedData(String encryptedData)
encryptedData - The encrypted payment credentials encoded in base64. *(for APPLEPAY payment method only)*public void setGenerateToken(Boolean generateToken)
public PaymentRequestPaymentData generateToken(Boolean generateToken)
generateToken - If set to `true`, token will be generated and returned in the response. Token can be generated only for successful transactions (not for declined transactions) *(for BANKCARD payment method only)*public void setNote(String note)
public PaymentRequestPaymentData note(String note)
note - Note about the transaction that will not be displayed to Customerpublic void setPreauth(Boolean preauth)
public PaymentRequestPaymentData preauth(Boolean preauth)
preauth - If set to `true`, the amount will not be captured but only blocked. Payments with 'preauth' attribute will be captured automatically in 7 days from the time of creating the preauth transaction. *(for BANKCARD payment method only)*.public void setTransType(PaymentRequestPaymentData.TransTypeEnum transType)
public PaymentRequestPaymentData transType(PaymentRequestPaymentData.TransTypeEnum transType)
transType - transTypeCopyright © 2021. All rights reserved.