PHP Class PayPal\Api\CreditCardToken

A resource representing a credit card that can be used to fund a payment.
Inheritance: extends PayPal\Common\PayPalModel
Mostra file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getCreditCardId ( ) : string ID of credit card previously stored using /vault/credit-card.
getExpireMonth ( ) : integer Expiration month with no leading zero. Acceptable values are 1 through 12.
getExpireYear ( ) : integer 4-digit expiration year.
getLast4 ( ) : string Last four digits of the stored credit card number.
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.**
getType ( ) : string Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.
setCreditCardId ( string $credit_card_id ) ID of credit card previously stored using /vault/credit-card.
setExpireMonth ( integer $expire_month ) Expiration month with no leading zero. Acceptable values are 1 through 12.
setExpireYear ( integer $expire_year ) 4-digit expiration year.
setLast4 ( string $last4 ) Last four digits of the stored credit card number.
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.**
setType ( string $type ) Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.

Method Details

getCreditCardId() public method

ID of credit card previously stored using /vault/credit-card.
public getCreditCardId ( ) : string
return string

getExpireMonth() public method

Expiration month with no leading zero. Acceptable values are 1 through 12.
public getExpireMonth ( ) : integer
return integer

getExpireYear() public method

4-digit expiration year.
public getExpireYear ( ) : integer
return integer

getLast4() public method

Last four digits of the stored credit card number.
public getLast4 ( ) : string
return string

getPayerId() public method

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.**
public getPayerId ( ) : string
return string

getType() public method

Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.
public getType ( ) : string
return string

setCreditCardId() public method

ID of credit card previously stored using /vault/credit-card.
public setCreditCardId ( string $credit_card_id )
$credit_card_id string

setExpireMonth() public method

Expiration month with no leading zero. Acceptable values are 1 through 12.
public setExpireMonth ( integer $expire_month )
$expire_month integer

setExpireYear() public method

4-digit expiration year.
public setExpireYear ( integer $expire_year )
$expire_year integer

setLast4() public method

Last four digits of the stored credit card number.
public setLast4 ( string $last4 )
$last4 string

setPayerId() public method

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.**
public setPayerId ( string $payer_id )
$payer_id string

setType() public method

Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.
public setType ( string $type )
$type string