PayPalApiCreditCardToken

Class CreditCardToken.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/CreditCardToken.php  
  1. class CreditCardToken extends PayPalModel 
  2. /** 
  3. * ID of credit card previously stored using `/vault/credit-card`. 
  4. * @param string $credit_card_id 
  5. * @return $this 
  6. */ 
  7. public function setCreditCardId($credit_card_id) 
  8. $this->credit_card_id = $credit_card_id; 
  9. return $this; 
  10.  
  11. /** 
  12. * ID of credit card previously stored using `/vault/credit-card`. 
  13. * @return string 
  14. */ 
  15. public function getCreditCardId() 
  16. return $this->credit_card_id; 
  17.  
  18. /** 
  19. * 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.** 
  20. * @param string $payer_id 
  21. * @return $this 
  22. */ 
  23. public function setPayerId($payer_id) 
  24. $this->payer_id = $payer_id; 
  25. return $this; 
  26.  
  27. /** 
  28. * 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.** 
  29. * @return string 
  30. */ 
  31. public function getPayerId() 
  32. return $this->payer_id; 
  33.  
  34. /** 
  35. * Last four digits of the stored credit card number. 
  36. * @param string $last4 
  37. * @return $this 
  38. */ 
  39. public function setLast4($last4) 
  40. $this->last4 = $last4; 
  41. return $this; 
  42.  
  43. /** 
  44. * Last four digits of the stored credit card number. 
  45. * @return string 
  46. */ 
  47. public function getLast4() 
  48. return $this->last4; 
  49.  
  50. /** 
  51. * Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display. 
  52. * @param string $type 
  53. * @return $this 
  54. */ 
  55. public function setType($type) 
  56. $this->type = $type; 
  57. return $this; 
  58.  
  59. /** 
  60. * Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display. 
  61. * @return string 
  62. */ 
  63. public function getType() 
  64. return $this->type; 
  65.  
  66. /** 
  67. * Expiration month with no leading zero. Acceptable values are 1 through 12. 
  68. * @param int $expire_month 
  69. * @return $this 
  70. */ 
  71. public function setExpireMonth($expire_month) 
  72. $this->expire_month = $expire_month; 
  73. return $this; 
  74.  
  75. /** 
  76. * Expiration month with no leading zero. Acceptable values are 1 through 12. 
  77. * @return int 
  78. */ 
  79. public function getExpireMonth() 
  80. return $this->expire_month; 
  81.  
  82. /** 
  83. * 4-digit expiration year. 
  84. * @param int $expire_year 
  85. * @return $this 
  86. */ 
  87. public function setExpireYear($expire_year) 
  88. $this->expire_year = $expire_year; 
  89. return $this; 
  90.  
  91. /** 
  92. * 4-digit expiration year. 
  93. * @return int 
  94. */ 
  95. public function getExpireYear() 
  96. return $this->expire_year; 
  97.