public class PaymentRequestPaymentData extends Object
| Constructor and Description |
|---|
PaymentRequestPaymentData() |
| Modifier and Type | Method and Description |
|---|---|
PaymentRequestPaymentData |
amount(BigDecimal amount) |
PaymentRequestPaymentData |
authenticationRequest(Boolean authenticationRequest) |
PaymentRequestPaymentData |
currency(String currency) |
PaymentRequestPaymentData |
dynamicDescriptor(String dynamicDescriptor) |
PaymentRequestPaymentData |
generateToken(Boolean generateToken) |
PaymentRequestPaymentData |
note(String note) |
PaymentRequestPaymentData |
preauth(Boolean preauth) |
void |
setAmount(BigDecimal amount) |
void |
setAuthenticationRequest(Boolean authenticationRequest) |
void |
setCurrency(String currency) |
void |
setDynamicDescriptor(String dynamicDescriptor) |
void |
setGenerateToken(Boolean generateToken) |
void |
setNote(String note) |
void |
setPreauth(Boolean preauth) |
String |
toString() |
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 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)*.Copyright © 2019. All rights reserved.