PHP Класс PayPal\Api\CreditCardToken

A resource representing a credit card that can be used to fund a payment.
Наследование: extends PayPal\Common\PayPalModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

getCreditCardId() публичный Метод

ID of credit card previously stored using /vault/credit-card.
public getCreditCardId ( ) : string
Результат string

getExpireMonth() публичный Метод

Expiration month with no leading zero. Acceptable values are 1 through 12.
public getExpireMonth ( ) : integer
Результат integer

getExpireYear() публичный Метод

4-digit expiration year.
public getExpireYear ( ) : integer
Результат integer

getLast4() публичный Метод

Last four digits of the stored credit card number.
public getLast4 ( ) : string
Результат string

getPayerId() публичный Метод

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
Результат string

getType() публичный Метод

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
Результат string

setCreditCardId() публичный Метод

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

setExpireMonth() публичный Метод

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

setExpireYear() публичный Метод

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

setLast4() публичный Метод

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

setPayerId() публичный Метод

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() публичный Метод

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