PHP Class PayPal\Api\CreditCardToken

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

Méthodes publiques

Méthode 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 méthode

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

getExpireMonth() public méthode

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

getExpireYear() public méthode

4-digit expiration year.
public getExpireYear ( ) : integer
Résultat integer

getLast4() public méthode

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

getPayerId() public méthode

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
Résultat string

getType() public méthode

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
Résultat string

setCreditCardId() public méthode

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

setExpireMonth() public méthode

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

setExpireYear() public méthode

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

setLast4() public méthode

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

setPayerId() public méthode

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 méthode

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