PHP 클래스 PayPal\Api\CreditCardToken

A resource representing a credit card that can be used to fund a payment.
상속: extends PayPal\Common\PayPalModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
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