CreditCard

public final class CreditCard implements Payment

Parameters

cardType

The 'card_type' field value is an enum value which is associated with the payment method of the specific payment instrument. For credit card payment method ensure attributes mentioned in dictionary below are set to corresponding values only. Ensure to comply with the naming standards provided in below dictionary. For example, some Payment processors use “Japan Credit Bureau” but “JCB” should be used when calling Fraud API. Incorrect card_type - brand combination will result in data quality issues and result in degraded risk recommendation. 'card_type' is an enum value with the following mapping with Payment brand attribute: * card_type : brand * -------------------------------------------------------- * AMERICAN_EXPRESS : AMERICAN_EXPRESS * DINERS_CLUB : DINERS_CLUB_INTERNATIONAL * DINERS_CLUB : BC_CARD * DISCOVER : DISCOVER * DISCOVER : BC_CARD * DISCOVER : DINERS_CLUB_INTERNATIONAL * DISCOVER : JCB * JCB : JCB * MASTER_CARD : MASTER_CARD * MASTER_CARD : MAESTRO * MASTER_CARD : POSTEPAY_MASTERCARD * SOLO : SOLO * SWITCH : SWITCH * MAESTRO : MAESTRO * CHINA_UNION_PAY : CHINA_UNION_PAY * UATP : UATP * UATP : UATP_SUPPLY * UATP : AIR_PLUS * UATP : UA_PASS_PLUS * VISA : VISA * VISA : VISA_DELTA * VISA : VISA_ELECTRON * VISA : CARTA_SI * VISA : CARTE_BLEUE * VISA : VISA_DANKORT * VISA : POSTEPAY_VISA_ELECTRON

cardNumber

All the digits (unencrypted) of the credit card number associated with the payment.

expiryDate

Expiration date of the credit card used for payment, in ISO-8601 date and time format yyyy-MM-ddTHH:mm:ss.SSSZ.

telephones

Telephone(s) associated with card holder and credit card.

electronicCommerceIndicator

Electronic Commerce Indicator, a two or three digit number usually returned by a 3rd party payment processor in regards to the authentication used when gathering the cardholder's payment credentials.

virtualCreditCardFlag

A flag to indicate that the bank card being used for the charge is a virtual credit card.

walletType

If a virtual/digital form of payment was used, the type of digital wallet should be specified here. Possible wallet_type's include: Google or ApplePay.

cardAvsResponse

A field used to confirm if the address provided at the time of purchase matches what the bank has on file for the Credit Card.

cardCvvResponse

A field used to confirm the Card Verification Value on the Credit Card matches the Credit Card used at the time of purchase.

merchantOrderCode

Reference code passed to acquiring bank at the time of payment. This code is the key ID that ties back to payments data at the payment level.

cardAuthenticationFailureCount

Total authentication failure count for given card.

Constructors

Link copied to clipboard
public CreditCard CreditCard(Payment.Brand brand, Name billingName, PaymentBillingAddress billingAddress, String billingEmailAddress, CreditCard.CardType cardType, String cardNumber, OffsetDateTime expiryDate, List<Telephone> telephones, PaymentReason reason, Amount authorizedAmount, Amount verifiedAmount, PaymentThreeDSCriteria threeDigitsSecureCriteria, Operations operations, Map<String, String> extensions, String electronicCommerceIndicator, Boolean virtualCreditCardFlag, String walletType, String cardAvsResponse, String cardCvvResponse, String merchantOrderCode, Integer cardAuthenticationFailureCount)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum CardType extends Enum<CreditCard.CardType>

The 'card_type' field value is an enum value which is associated with the payment method of the specific payment instrument. For credit card payment method ensure attributes mentioned in dictionary below are set to corresponding values only. Ensure to comply with the naming standards provided in below dictionary. For example, some Payment processors use “Japan Credit Bureau” but “JCB” should be used when calling Fraud API. Incorrect card_type - brand combination will result in data quality issues and result in degraded risk recommendation. 'card_type' is an enum value with the following mapping with Payment brand attribute: * card_type : brand * -------------------------------------------------------- * AMERICAN_EXPRESS : AMERICAN_EXPRESS * DINERS_CLUB : DINERS_CLUB_INTERNATIONAL * DINERS_CLUB : BC_CARD * DISCOVER : DISCOVER * DISCOVER : BC_CARD * DISCOVER : DINERS_CLUB_INTERNATIONAL * DISCOVER : JCB * JCB : JCB * MASTER_CARD : MASTER_CARD * MASTER_CARD : MAESTRO * MASTER_CARD : POSTEPAY_MASTERCARD * SOLO : SOLO * SWITCH : SWITCH * MAESTRO : MAESTRO * CHINA_UNION_PAY : CHINA_UNION_PAY * UATP : UATP * UATP : UATP_SUPPLY * UATP : AIR_PLUS * UATP : UA_PASS_PLUS * VISA : VISA * VISA : VISA_DELTA * VISA : VISA_ELECTRON * VISA : CARTA_SI * VISA : CARTE_BLEUE * VISA : VISA_DANKORT * VISA : POSTEPAY_VISA_ELECTRON Values: AMERICAN_EXPRESS,DINERS_CLUB,DISCOVER,JCB,MASTER_CARD,SOLO,SWITCH,MAESTRO,CHINA_UNION_PAY,UATP,VISA

Properties

Link copied to clipboard
@Valid()
private final Amount authorizedAmount
Link copied to clipboard
@NotNull()
@Valid()
private final PaymentBillingAddress billingAddress
Link copied to clipboard
@Length(max = 200)
@NotNull()
@Valid()
private final String billingEmailAddress
Link copied to clipboard
@NotNull()
@Valid()
private final Name billingName
Link copied to clipboard
@NotNull()
private final Payment.Brand brand
Link copied to clipboard
Link copied to clipboard
@Length(max = 50)
@Valid()
private final String cardAvsResponse
Link copied to clipboard
@Length(max = 20)
@Valid()
private final String cardCvvResponse
Link copied to clipboard
@Length(max = 200)
@NotNull()
@Valid()
private final String cardNumber
Link copied to clipboard
@NotNull()
private final CreditCard.CardType cardType
Link copied to clipboard
@Length(max = 200)
@Valid()
private final String electronicCommerceIndicator
Link copied to clipboard
private final OffsetDateTime expiryDate
Link copied to clipboard
@Valid()
private final Map<String, String> extensions
Link copied to clipboard
@Length(max = 200)
@Valid()
private final String merchantOrderCode
Link copied to clipboard
private final PaymentMethod method
Link copied to clipboard
@Valid()
private final Operations operations
Link copied to clipboard
@Valid()
private final PaymentReason reason
Link copied to clipboard
@Size(min = 1, max = 20)
@NotNull()
@Valid()
private final List<Telephone> telephones
Link copied to clipboard
Link copied to clipboard
@Valid()
private final Amount verifiedAmount
Link copied to clipboard
@Valid()
private final Boolean virtualCreditCardFlag
Link copied to clipboard
@Length(max = 200)
@Valid()
private final String walletType

Functions

Link copied to clipboard
public final static CreditCard.Builder builder()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final String getCardAvsResponse()
Link copied to clipboard
public final String getCardCvvResponse()
Link copied to clipboard
public final String getCardNumber()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final List<Telephone> getTelephones()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final String getWalletType()
Link copied to clipboard