public class PaymentsRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentsRequest.ChannelEnum
The platform where a payment transaction takes place.
|
static class |
PaymentsRequest.EntityTypeEnum
The type of the entity the payment is processed for.
|
static class |
PaymentsRequest.RecurringProcessingModelEnum
how the shopper interacts with the system
|
static class |
PaymentsRequest.ShopperInteractionEnum
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.
|
| Constructor and Description |
|---|
PaymentsRequest() |
| Modifier and Type | Method and Description |
|---|---|
PaymentsRequest |
addBrowserInfoData(String userAgent,
String acceptHeader) |
PaymentsRequest |
addCardData(String cardNumber,
String expiryMonth,
String expiryYear,
String securityCode,
String holderName)
Add raw card data into the payment request.
|
PaymentsRequest |
addCardData(String cardNumber,
String expiryMonth,
String expiryYear,
String securityCode,
String holderName,
Boolean storeDetails) |
PaymentsRequest |
addEncryptedCardData(String encryptedCardNumber,
String encryptedExpiryMonth,
String encryptedExpiryYear,
String encryptedSecurityCode) |
PaymentsRequest |
addEncryptedCardData(String encryptedCardNumber,
String encryptedExpiryMonth,
String encryptedExpiryYear,
String encryptedSecurityCode,
String holderName) |
PaymentsRequest |
addEncryptedCardData(String encryptedCardNumber,
String encryptedExpiryMonth,
String encryptedExpiryYear,
String encryptedSecurityCode,
String holderName,
Boolean storeDetails) |
PaymentsRequest |
additionalData(Map<String,String> additionalData) |
PaymentsRequest |
addLineItemsItem(LineItem lineItemsItem) |
PaymentsRequest |
addOneClickData(String recurringDetailReference,
String encryptedSecurityCode) |
PaymentsRequest |
amount(Amount amount) |
PaymentsRequest |
applicationInfo(ApplicationInfo applicationInfo) |
PaymentsRequest |
billingAddress(Address billingAddress) |
PaymentsRequest |
browserInfo(BrowserInfo browserInfo) |
PaymentsRequest |
captureDelayHours(Integer captureDelayHours) |
PaymentsRequest |
channel(PaymentsRequest.ChannelEnum channel) |
PaymentsRequest |
checkoutAttemptId(String checkoutAttemptId) |
PaymentsRequest |
company(Company company) |
PaymentsRequest |
conversionId(String conversionId) |
PaymentsRequest |
countryCode(String countryCode) |
PaymentsRequest |
dateOfBirth(Date dateOfBirth) |
PaymentsRequest |
dccQuote(ForexQuote dccQuote) |
PaymentsRequest |
deliveryAddress(Address deliveryAddress) |
PaymentsRequest |
deliveryDate(Date deliveryDate) |
PaymentsRequest |
deviceFingerprint(String deviceFingerprint) |
PaymentsRequest |
enableOneClick(Boolean enableOneClick) |
PaymentsRequest |
enablePayOut(Boolean enablePayOut) |
PaymentsRequest |
enableRecurring(Boolean enableRecurring) |
PaymentsRequest |
entityType(PaymentsRequest.EntityTypeEnum entityType) |
boolean |
equals(Object o) |
PaymentsRequest |
fraudOffset(Integer fraudOffset) |
AccountInfo |
getAccountInfo() |
Map<String,String> |
getAdditionalData()
This field contains additional data, which may be required for a particular payment request.
|
Amount |
getAmount()
Get amount
|
ApplicationInfo |
getApplicationInfo() |
Address |
getBillingAddress()
Get billingAddress
|
BrowserInfo |
getBrowserInfo() |
Integer |
getCaptureDelayHours()
The delay between the authorisation and scheduled auto-capture, specified in hours.
|
PaymentsRequest.ChannelEnum |
getChannel()
The platform where a payment transaction takes place.
|
String |
getCheckoutAttemptId()
Checkout attempt ID that corresponds to the Id generated for tracking user payment journey.
|
Company |
getCompany()
Get company
|
String |
getConversionId()
Conversion ID that corresponds to the Id generated for tracking user payment journey.
|
String |
getCountryCode()
The shopper country.
|
Date |
getDateOfBirth()
The shopper's date of birth.
|
ForexQuote |
getDccQuote()
Get dccQuote
|
Address |
getDeliveryAddress()
Get deliveryAddress
|
Date |
getDeliveryDate()
The date and time the purchased goods should be delivered.
|
String |
getDeviceFingerprint() |
Boolean |
getEnableOneClick() |
Boolean |
getEnablePayOut() |
Boolean |
getEnableRecurring() |
PaymentsRequest.EntityTypeEnum |
getEntityType()
The type of the entity the payment is processed for.
|
Integer |
getFraudOffset()
An integer value that is added to the normal fraud score.
|
Installments |
getInstallments()
Get installments
|
List<LineItem> |
getLineItems()
Line items regarding the payment.
|
Mandate |
getMandate()
Get mandate
|
String |
getMcc()
The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment.
|
String |
getMerchantAccount()
The merchant account identifier, with which you want to process the transaction.
|
String |
getMerchantOrderReference()
This reference allows linking multiple transactions to each other.
|
MerchantRiskIndicator |
getMerchantRiskIndicator() |
Map<String,String> |
getMetadata()
Metadata consists of entries, each of which includes a key and a value.
|
ThreeDSecureData |
getMpiData()
Authentication data produced by an MPI (Mastercard SecureCode or Verified By Visa).
|
CheckoutOrder |
getOrder()
Contains the order information which is required for partial payments.
|
String |
getOrderReference()
The order reference to link multiple partial payments.
|
String |
getOrigin() |
PaymentMethodDetails |
getPaymentMethod() |
String |
getRecurringExpiry() |
String |
getRecurringFrequency() |
PaymentsRequest.RecurringProcessingModelEnum |
getRecurringProcessingModel() |
String |
getRedirectFromIssuerMethod()
Specifies the redirect method (GET or POST) when redirecting back from the issuer.
|
String |
getRedirectToIssuerMethod()
Specifies the redirect method (GET or POST) when redirecting to the issuer.
|
String |
getReference()
The reference to uniquely identify a payment.
|
String |
getReturnUrl()
The URL to return to.
|
RiskData |
getRiskData()
Get riskData
|
String |
getSessionValidity()
The maximum validity of the session.
|
String |
getShopperEmail()
The shopper's email address.
|
PaymentsRequest.ShopperInteractionEnum |
getShopperInteraction()
Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.
|
String |
getShopperIP()
The shopper's IP address.
|
String |
getShopperLocale()
The combination of a language code and a country code to specify the language to be used in the payment.
|
Name |
getShopperName()
Get shopperName
|
String |
getShopperReference()
The shopper's reference to uniquely identify this shopper (e.g.
|
String |
getShopperStatement()
The text to appear on the shopper's bank statement.
|
String |
getSocialSecurityNumber()
The shopper's social security number.
|
List<Split> |
getSplits() |
String |
getStore() |
Boolean |
getStorePaymentMethod()
When true and shopperReference is provided, the payment details will be stored.
|
String |
getTelephoneNumber()
The shopper's telephone number.
|
ThreeDS2RequestData |
getThreeDS2RequestData() |
Boolean |
getTrustedShopper() |
int |
hashCode() |
PaymentsRequest |
installments(Installments installments) |
Boolean |
isEnableOneClick()
When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.
|
Boolean |
isEnablePayOut()
When true and `shopperReference` is provided, the payment details will be tokenized for payouts.
|
Boolean |
isEnableRecurring()
When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.
|
Boolean |
isThreeDSAuthenticationOnly()
If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation.
|
PaymentsRequest |
lineItems(List<LineItem> lineItems) |
PaymentsRequest |
mandate(Mandate mandate) |
PaymentsRequest |
mcc(String mcc) |
PaymentsRequest |
merchantAccount(String merchantAccount) |
PaymentsRequest |
merchantOrderReference(String merchantOrderReference) |
PaymentsRequest |
metadata(Map<String,String> metadata) |
PaymentsRequest |
mpiData(ThreeDSecureData mpiData) |
PaymentsRequest |
order(CheckoutOrder order) |
PaymentsRequest |
orderReference(String orderReference) |
PaymentsRequest |
origin(String origin) |
PaymentsRequest |
paymentMethod(PaymentMethodDetails paymentMethod) |
PaymentsRequest |
putAdditionalDataItem(String key,
String additionalDataItem) |
PaymentsRequest |
putMetadataItem(String key,
String metadataItem) |
PaymentsRequest |
recurringProcessingModel(PaymentsRequest.RecurringProcessingModelEnum recurringProcessingModel) |
PaymentsRequest |
redirectFromIssuerMethod(String redirectFromIssuerMethod) |
PaymentsRequest |
redirectToIssuerMethod(String redirectToIssuerMethod) |
PaymentsRequest |
reference(String reference) |
PaymentsRequest |
returnUrl(String returnUrl) |
PaymentsRequest |
riskData(RiskData riskData) |
PaymentsRequest |
sessionValidity(String sessionValidity) |
void |
setAccountInfo(AccountInfo accountInfo) |
void |
setAdditionalData(Map<String,String> additionalData) |
void |
setAmount(Amount amount) |
PaymentsRequest |
setAmountData(String amount,
String currency) |
void |
setApplicationInfo(ApplicationInfo applicationInfo) |
void |
setBillingAddress(Address billingAddress) |
void |
setBrowserInfo(BrowserInfo browserInfo) |
void |
setCaptureDelayHours(Integer captureDelayHours) |
void |
setChannel(PaymentsRequest.ChannelEnum channel) |
void |
setCheckoutAttemptId(String checkoutAttemptId) |
void |
setCompany(Company company) |
void |
setConversionId(String conversionId) |
void |
setCountryCode(String countryCode) |
void |
setDateOfBirth(Date dateOfBirth) |
void |
setDccQuote(ForexQuote dccQuote) |
void |
setDeliveryAddress(Address deliveryAddress) |
void |
setDeliveryDate(Date deliveryDate) |
void |
setDeviceFingerprint(String deviceFingerprint) |
void |
setEnableOneClick(Boolean enableOneClick) |
void |
setEnablePayOut(Boolean enablePayOut) |
void |
setEnableRecurring(Boolean enableRecurring) |
void |
setEntityType(PaymentsRequest.EntityTypeEnum entityType) |
void |
setFraudOffset(Integer fraudOffset) |
void |
setInstallments(Installments installments) |
void |
setLineItems(List<LineItem> lineItems) |
void |
setMandate(Mandate mandate) |
void |
setMcc(String mcc) |
void |
setMerchantAccount(String merchantAccount) |
void |
setMerchantOrderReference(String merchantOrderReference) |
void |
setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator) |
void |
setMetadata(Map<String,String> metadata) |
void |
setMpiData(ThreeDSecureData mpiData) |
void |
setOrder(CheckoutOrder order) |
void |
setOrderReference(String orderReference) |
void |
setOrigin(String origin) |
void |
setPaymentMethod(PaymentMethodDetails paymentMethod) |
void |
setRecurringExpiry(String recurringExpiry) |
void |
setRecurringFrequency(String recurringFrequency) |
void |
setRecurringProcessingModel(PaymentsRequest.RecurringProcessingModelEnum recurringProcessingModel) |
void |
setRedirectFromIssuerMethod(String redirectFromIssuerMethod) |
void |
setRedirectToIssuerMethod(String redirectToIssuerMethod) |
void |
setReference(String reference) |
void |
setReturnUrl(String returnUrl) |
void |
setRiskData(RiskData riskData) |
void |
setSessionValidity(String sessionValidity) |
void |
setShopperEmail(String shopperEmail) |
void |
setShopperInteraction(PaymentsRequest.ShopperInteractionEnum shopperInteraction) |
void |
setShopperIP(String shopperIP) |
void |
setShopperLocale(String shopperLocale) |
void |
setShopperName(Name shopperName) |
void |
setShopperReference(String shopperReference) |
void |
setShopperStatement(String shopperStatement) |
void |
setSocialSecurityNumber(String socialSecurityNumber) |
void |
setSplits(List<Split> splits) |
void |
setStore(String store) |
void |
setStorePaymentMethod(Boolean storePaymentMethod) |
void |
setTelephoneNumber(String telephoneNumber) |
void |
setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData) |
void |
setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) |
void |
setTrustedShopper(Boolean trustedShopper) |
PaymentsRequest |
shopperEmail(String shopperEmail) |
PaymentsRequest |
shopperInteraction(PaymentsRequest.ShopperInteractionEnum shopperInteraction) |
PaymentsRequest |
shopperIP(String shopperIP) |
PaymentsRequest |
shopperLocale(String shopperLocale) |
PaymentsRequest |
shopperName(Name shopperName) |
PaymentsRequest |
shopperReference(String shopperReference) |
PaymentsRequest |
shopperStatement(String shopperStatement) |
PaymentsRequest |
socialSecurityNumber(String socialSecurityNumber) |
PaymentsRequest |
store(String store) |
PaymentsRequest |
storePaymentMethod(Boolean storePaymentMethod) |
PaymentsRequest |
telephoneNumber(String telephoneNumber) |
PaymentsRequest |
threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) |
String |
toString() |
public PaymentsRequest.RecurringProcessingModelEnum getRecurringProcessingModel()
public PaymentsRequest recurringProcessingModel(PaymentsRequest.RecurringProcessingModelEnum recurringProcessingModel)
public void setRecurringProcessingModel(PaymentsRequest.RecurringProcessingModelEnum recurringProcessingModel)
public MerchantRiskIndicator getMerchantRiskIndicator()
public void setMerchantRiskIndicator(MerchantRiskIndicator merchantRiskIndicator)
public AccountInfo getAccountInfo()
public void setAccountInfo(AccountInfo accountInfo)
public Boolean getEnableOneClick()
public Boolean getEnablePayOut()
public Boolean getEnableRecurring()
public Boolean getTrustedShopper()
public void setTrustedShopper(Boolean trustedShopper)
public ThreeDS2RequestData getThreeDS2RequestData()
public void setThreeDS2RequestData(ThreeDS2RequestData threeDS2RequestData)
public PaymentsRequest additionalData(Map<String,String> additionalData)
public PaymentsRequest putAdditionalDataItem(String key, String additionalDataItem)
public Map<String,String> getAdditionalData()
public PaymentsRequest amount(Amount amount)
public Amount getAmount()
public void setAmount(Amount amount)
public PaymentsRequest setAmountData(String amount, String currency)
public PaymentsRequest billingAddress(Address billingAddress)
public Address getBillingAddress()
public void setBillingAddress(Address billingAddress)
public PaymentsRequest captureDelayHours(Integer captureDelayHours)
public Integer getCaptureDelayHours()
public void setCaptureDelayHours(Integer captureDelayHours)
public PaymentsRequest channel(PaymentsRequest.ChannelEnum channel)
public PaymentsRequest.ChannelEnum getChannel()
public void setChannel(PaymentsRequest.ChannelEnum channel)
public PaymentsRequest company(Company company)
public Company getCompany()
public void setCompany(Company company)
public PaymentsRequest countryCode(String countryCode)
public String getCountryCode()
public void setCountryCode(String countryCode)
public PaymentsRequest dateOfBirth(Date dateOfBirth)
public Date getDateOfBirth()
public void setDateOfBirth(Date dateOfBirth)
public PaymentsRequest dccQuote(ForexQuote dccQuote)
public ForexQuote getDccQuote()
public void setDccQuote(ForexQuote dccQuote)
public PaymentsRequest deliveryAddress(Address deliveryAddress)
public Address getDeliveryAddress()
public void setDeliveryAddress(Address deliveryAddress)
public PaymentsRequest deliveryDate(Date deliveryDate)
public Date getDeliveryDate()
public void setDeliveryDate(Date deliveryDate)
public PaymentsRequest enableOneClick(Boolean enableOneClick)
public Boolean isEnableOneClick()
public void setEnableOneClick(Boolean enableOneClick)
public PaymentsRequest enablePayOut(Boolean enablePayOut)
public Boolean isEnablePayOut()
public void setEnablePayOut(Boolean enablePayOut)
public PaymentsRequest enableRecurring(Boolean enableRecurring)
public Boolean isEnableRecurring()
public void setEnableRecurring(Boolean enableRecurring)
public PaymentsRequest entityType(PaymentsRequest.EntityTypeEnum entityType)
public PaymentsRequest.EntityTypeEnum getEntityType()
public void setEntityType(PaymentsRequest.EntityTypeEnum entityType)
public PaymentsRequest fraudOffset(Integer fraudOffset)
public Integer getFraudOffset()
public void setFraudOffset(Integer fraudOffset)
public PaymentsRequest installments(Installments installments)
public Installments getInstallments()
public void setInstallments(Installments installments)
public PaymentsRequest lineItems(List<LineItem> lineItems)
public PaymentsRequest addLineItemsItem(LineItem lineItemsItem)
public List<LineItem> getLineItems()
public PaymentsRequest mcc(String mcc)
public String getMcc()
public void setMcc(String mcc)
public PaymentsRequest merchantAccount(String merchantAccount)
public String getMerchantAccount()
public void setMerchantAccount(String merchantAccount)
public PaymentsRequest merchantOrderReference(String merchantOrderReference)
public String getMerchantOrderReference()
public void setMerchantOrderReference(String merchantOrderReference)
public PaymentsRequest metadata(Map<String,String> metadata)
public PaymentsRequest putMetadataItem(String key, String metadataItem)
public Map<String,String> getMetadata()
public PaymentsRequest orderReference(String orderReference)
public String getOrderReference()
public void setOrderReference(String orderReference)
public PaymentMethodDetails getPaymentMethod()
public void setPaymentMethod(PaymentMethodDetails paymentMethod)
public PaymentsRequest paymentMethod(PaymentMethodDetails paymentMethod)
public String getStore()
public void setStore(String store)
public PaymentsRequest store(String store)
public PaymentsRequest mandate(Mandate mandate)
public Mandate getMandate()
public void setMandate(Mandate mandate)
public PaymentsRequest addEncryptedCardData(String encryptedCardNumber, String encryptedExpiryMonth, String encryptedExpiryYear, String encryptedSecurityCode)
public PaymentsRequest addEncryptedCardData(String encryptedCardNumber, String encryptedExpiryMonth, String encryptedExpiryYear, String encryptedSecurityCode, String holderName)
public PaymentsRequest addEncryptedCardData(String encryptedCardNumber, String encryptedExpiryMonth, String encryptedExpiryYear, String encryptedSecurityCode, String holderName, Boolean storeDetails)
public PaymentsRequest addCardData(String cardNumber, String expiryMonth, String expiryYear, String securityCode, String holderName)
cardNumber - card numberexpiryMonth - expiry monthexpiryYear - expiry yearholderName - holder namesecurityCode - security codepublic PaymentsRequest addCardData(String cardNumber, String expiryMonth, String expiryYear, String securityCode, String holderName, Boolean storeDetails)
public PaymentsRequest addOneClickData(String recurringDetailReference, String encryptedSecurityCode)
public PaymentsRequest reference(String reference)
public String getReference()
public void setReference(String reference)
public PaymentsRequest returnUrl(String returnUrl)
public String getReturnUrl()
public void setReturnUrl(String returnUrl)
public PaymentsRequest sessionValidity(String sessionValidity)
public String getSessionValidity()
public void setSessionValidity(String sessionValidity)
public PaymentsRequest shopperEmail(String shopperEmail)
public String getShopperEmail()
public void setShopperEmail(String shopperEmail)
public PaymentsRequest shopperIP(String shopperIP)
public String getShopperIP()
public void setShopperIP(String shopperIP)
public PaymentsRequest shopperInteraction(PaymentsRequest.ShopperInteractionEnum shopperInteraction)
public PaymentsRequest.ShopperInteractionEnum getShopperInteraction()
public void setShopperInteraction(PaymentsRequest.ShopperInteractionEnum shopperInteraction)
public PaymentsRequest shopperLocale(String shopperLocale)
public String getShopperLocale()
public void setShopperLocale(String shopperLocale)
public PaymentsRequest shopperName(Name shopperName)
public Name getShopperName()
public void setShopperName(Name shopperName)
public PaymentsRequest shopperReference(String shopperReference)
public String getShopperReference()
public void setShopperReference(String shopperReference)
public PaymentsRequest shopperStatement(String shopperStatement)
public String getShopperStatement()
public void setShopperStatement(String shopperStatement)
public PaymentsRequest socialSecurityNumber(String socialSecurityNumber)
public String getSocialSecurityNumber()
public void setSocialSecurityNumber(String socialSecurityNumber)
public PaymentsRequest telephoneNumber(String telephoneNumber)
public String getTelephoneNumber()
public void setTelephoneNumber(String telephoneNumber)
public BrowserInfo getBrowserInfo()
public void setBrowserInfo(BrowserInfo browserInfo)
public PaymentsRequest browserInfo(BrowserInfo browserInfo)
public PaymentsRequest addBrowserInfoData(String userAgent, String acceptHeader)
public String getDeviceFingerprint()
public void setDeviceFingerprint(String deviceFingerprint)
public PaymentsRequest deviceFingerprint(String deviceFingerprint)
public ApplicationInfo getApplicationInfo()
public void setApplicationInfo(ApplicationInfo applicationInfo)
public PaymentsRequest applicationInfo(ApplicationInfo applicationInfo)
public String getOrigin()
public void setOrigin(String origin)
public PaymentsRequest origin(String origin)
public ThreeDSecureData getMpiData()
public void setMpiData(ThreeDSecureData mpiData)
public PaymentsRequest mpiData(ThreeDSecureData mpiData)
public String getRedirectFromIssuerMethod()
public void setRedirectFromIssuerMethod(String redirectFromIssuerMethod)
public PaymentsRequest redirectFromIssuerMethod(String redirectFromIssuerMethod)
public String getRedirectToIssuerMethod()
public void setRedirectToIssuerMethod(String redirectToIssuerMethod)
public PaymentsRequest redirectToIssuerMethod(String redirectToIssuerMethod)
public CheckoutOrder getOrder()
public void setOrder(CheckoutOrder order)
public PaymentsRequest order(CheckoutOrder order)
public Boolean getStorePaymentMethod()
public void setStorePaymentMethod(Boolean storePaymentMethod)
public PaymentsRequest storePaymentMethod(Boolean storePaymentMethod)
public PaymentsRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
public Boolean isThreeDSAuthenticationOnly()
public void setThreeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly)
public PaymentsRequest riskData(RiskData riskData)
public RiskData getRiskData()
public void setRiskData(RiskData riskData)
public PaymentsRequest conversionId(String conversionId)
public String getConversionId()
public void setConversionId(String conversionId)
public PaymentsRequest checkoutAttemptId(String checkoutAttemptId)
public String getCheckoutAttemptId()
public void setCheckoutAttemptId(String checkoutAttemptId)
public String getRecurringExpiry()
public void setRecurringExpiry(String recurringExpiry)
public String getRecurringFrequency()
public void setRecurringFrequency(String recurringFrequency)
Copyright © 2022. All rights reserved.