Class CardRequest
- java.lang.Object
-
- com.broadleafcommerce.paypal.micro.gateway.domain.payments.CardRequest
-
- All Implemented Interfaces:
Serializable
public class CardRequest extends Object implements Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CardRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressPortablegetBillingAddress()The billing address for this card.StringgetExpiry()The card expiration year and month, in Internet date and time format.StringgetName()The card holder's name as it appears on the card.StringgetNumber()The primary account number (PAN) for the payment card.StringgetSecurityCode()The three- or four-digit security code of the card.CardStoredCredentialgetStoredCredential()Provides additional details to process a payment using a "card" that has been stored or is intended to be stored (also referred to as stored_credential or card-on-file).StringgetVaultId()The PayPal-generated ID for the saved card payment source.voidsetBillingAddress(AddressPortable billingAddress)The billing address for this card.voidsetExpiry(String expiry)The card expiration year and month, in Internet date and time format.voidsetName(String name)The card holder's name as it appears on the card.voidsetNumber(String number)The primary account number (PAN) for the payment card.voidsetSecurityCode(String securityCode)The three- or four-digit security code of the card.voidsetStoredCredential(CardStoredCredential storedCredential)Provides additional details to process a payment using a "card" that has been stored or is intended to be stored (also referred to as stored_credential or card-on-file).voidsetVaultId(String vaultId)The PayPal-generated ID for the saved card payment source.
-
-
-
Method Detail
-
setBillingAddress
public void setBillingAddress(AddressPortable billingAddress)
The billing address for this card. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties.
-
setExpiry
public void setExpiry(String expiry)
The card expiration year and month, in Internet date and time format.
-
setName
public void setName(String name)
The card holder's name as it appears on the card.
-
setNumber
public void setNumber(String number)
The primary account number (PAN) for the payment card.
-
setSecurityCode
public void setSecurityCode(String securityCode)
The three- or four-digit security code of the card. Also known as the CVV, CVC, CVN, CVE, or CID. This parameter cannot be present in the request when "payment_initiator=MERCHANT".
-
setStoredCredential
public void setStoredCredential(CardStoredCredential storedCredential)
Provides additional details to process a payment using a "card" that has been stored or is intended to be stored (also referred to as stored_credential or card-on-file). Parameter compatibility:- "payment_type=ONE_TIME" is compatible only with "payment_initiator=CUSTOMER".
- "usage=FIRST" is compatible only with "payment_initiator=CUSTOMER".
- "previous_transaction_reference" or "previous_network_transaction_reference" is compatible only with "payment_initiator=MERCHANT".
- Only one of the parameters - "previous_transaction_reference" and "previous_network_transaction_reference" - can be present in the request.
-
setVaultId
public void setVaultId(String vaultId)
The PayPal-generated ID for the saved card payment source. Typically stored on the merchant's server.
-
getBillingAddress
public AddressPortable getBillingAddress()
The billing address for this card. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties.
-
getExpiry
public String getExpiry()
The card expiration year and month, in Internet date and time format.
-
getName
public String getName()
The card holder's name as it appears on the card.
-
getNumber
public String getNumber()
The primary account number (PAN) for the payment card.
-
getSecurityCode
public String getSecurityCode()
The three- or four-digit security code of the card. Also known as the CVV, CVC, CVN, CVE, or CID. This parameter cannot be present in the request when "payment_initiator=MERCHANT".
-
getStoredCredential
public CardStoredCredential getStoredCredential()
Provides additional details to process a payment using a "card" that has been stored or is intended to be stored (also referred to as stored_credential or card-on-file). Parameter compatibility:- "payment_type=ONE_TIME" is compatible only with "payment_initiator=CUSTOMER".
- "usage=FIRST" is compatible only with "payment_initiator=CUSTOMER".
- "previous_transaction_reference" or "previous_network_transaction_reference" is compatible only with "payment_initiator=MERCHANT".
- Only one of the parameters - "previous_transaction_reference" and "previous_network_transaction_reference" - can be present in the request.
-
getVaultId
public String getVaultId()
The PayPal-generated ID for the saved card payment source. Typically stored on the merchant's server.
-
-