Method |
Description |
|
all ( array $params, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PayPal\Api\CreditCardList |
Retrieves a list of Credit Card resources. |
|
create ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : CreditCard |
Creates a new Credit Card Resource (aka Tokenize). |
|
delete ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : boolean |
Delete the Credit Card resource for the given identifier. |
|
get ( string $creditCardId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : CreditCard |
Obtain the Credit Card resource for the given identifier. |
|
getBillingAddress ( ) : Address |
Billing Address associated with this card. |
|
getCreateTime ( ) : string |
Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates creation time. |
|
getCvv2 ( ) : string |
3-4 digit card validation code. |
|
getExpireMonth ( ) : integer |
Expiration month with no leading zero. Acceptable values are 1 through 12. |
|
getExpireYear ( ) : integer |
4-digit expiration year. |
|
getExternalCardId ( ) : string |
A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant. |
|
getExternalCustomerId ( ) : string |
A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of payer_id when creating or using a stored funding instrument in the vault.** |
|
getFirstName ( ) : string |
Cardholder's first name. |
|
getId ( ) : string |
ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.** |
|
getLastName ( ) : string |
Cardholder's last name. |
|
getMerchantId ( ) : string |
A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id |
|
getNumber ( ) : string |
Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.* |
|
getPayerId ( ) : string |
A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault. |
|
getState ( ) : string |
State of the credit card funding instrument. |
|
getType ( ) : string |
Credit card type. Valid types are: visa, mastercard, discover, amex |
|
getUpdateTime ( ) : string |
Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time. |
|
getValidUntil ( ) : string |
Funding instrument expiration date. |
|
setBillingAddress ( Address $billing_address ) |
Billing Address associated with this card. |
|
setCreateTime ( string $create_time ) |
Funding instrument expiration date. |
|
setCvv2 ( string $cvv2 ) |
3-4 digit card validation code. |
|
setExpireMonth ( integer $expire_month ) |
Expiration month with no leading zero. Acceptable values are 1 through 12. |
|
setExpireYear ( integer $expire_year ) |
4-digit expiration year. |
|
setExternalCardId ( string $external_card_id ) |
A unique identifier of the bank account resource. Generated and provided by the facilitator so it can be used to restrict the usage of the bank account to the specific merchant. |
|
setExternalCustomerId ( string $external_customer_id ) |
A unique identifier of the customer to whom this bank account belongs. Generated and provided by the facilitator. **This is now used in favor of payer_id when creating or using a stored funding instrument in the vault.** |
|
setFirstName ( string $first_name ) |
Cardholder's first name. |
|
setId ( string $id ) |
ID of the credit card. This ID is provided in the response when storing credit cards. **Required if using a stored credit card.** |
|
setLastName ( string $last_name ) |
Cardholder's last name. |
|
setMerchantId ( string $merchant_id ) |
A user provided, optional convenvience field that functions as a unique identifier for the merchant on behalf of whom this credit card is being stored for. Note that this has no relation to PayPal merchant id |
|
setNumber ( string $number ) |
Credit card number. Numeric characters only with no spaces or punctuation. The string must conform with modulo and length required by each credit card type. *Redacted in responses.* |
|
setPayerId ( string $payer_id ) |
A unique identifier that you can assign and track when storing a credit card or using a stored credit card. This ID can help to avoid unintentional use or misuse of credit cards. This ID can be any value you would like to associate with the saved card, such as a UUID, username, or email address. Required when using a stored credit card if a payer_id was originally provided when storing the credit card in vault. |
|
setState ( string $state ) |
State of the credit card funding instrument. |
|
setType ( string $type ) |
Credit card type. Valid types are: visa, mastercard, discover, amex |
|
setUpdateTime ( string $update_time ) |
Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the updation time. |
|
setValidUntil ( string $valid_until ) |
Date/Time until this resource can be used fund a payment. |
|
update ( PatchRequest $patchRequest, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : CreditCard |
Update information in a previously saved card. Only the modified fields need to be passed in the request. |
|