forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -15,16 +15,16 @@ use PayPal\Common\PayPalModel;
|
||||
* @property string payer_id
|
||||
* @property string last4
|
||||
* @property string type
|
||||
* @property int expire_month
|
||||
* @property int expire_year
|
||||
* @property int expire_month
|
||||
* @property int expire_year
|
||||
*/
|
||||
class CreditCardToken extends PayPalModel
|
||||
{
|
||||
/**
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
* ID of credit card previously stored using `/vault/credit-card`.
|
||||
*
|
||||
* @param string $credit_card_id
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreditCardId($credit_card_id)
|
||||
@@ -34,7 +34,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
* ID of credit card previously stored using `/vault/credit-card`.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -44,10 +44,10 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
* 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.**
|
||||
*
|
||||
* @param string $payer_id
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerId($payer_id)
|
||||
@@ -57,7 +57,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
* 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.**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -67,10 +67,10 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Last 4 digits of the card number from the saved card.
|
||||
* Last four digits of the stored credit card number.
|
||||
*
|
||||
* @param string $last4
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLast4($last4)
|
||||
@@ -80,7 +80,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Last 4 digits of the card number from the saved card.
|
||||
* Last four digits of the stored credit card number.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -90,10 +90,10 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
|
||||
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display.
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($type)
|
||||
@@ -103,7 +103,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
|
||||
* Credit card type. Valid types are: `visa`, `mastercard`, `discover`, `amex`. Values are presented in lowercase and not should not be used for display.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -113,10 +113,10 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
||||
*
|
||||
* @param int $expire_month
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpireMonth($expire_month)
|
||||
@@ -126,7 +126,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
* Expiration month with no leading zero. Acceptable values are 1 through 12.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
@@ -136,10 +136,10 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* 4 digit card expiry year from the saved card
|
||||
* 4-digit expiration year.
|
||||
*
|
||||
* @param int $expire_year
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpireYear($expire_year)
|
||||
@@ -149,7 +149,7 @@ class CreditCardToken extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* 4 digit card expiry year from the saved card
|
||||
* 4-digit expiration year.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user