PHP Класс PayPal\Api\PaymentCard

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

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

Метод Описание
addLink ( PayPal\Api\Links $links ) Append Links to the list.
getBillingAddress ( ) : Address The billing address for the card.
getBillingCountry ( ) : string The two-letter country code.
getCardProductClass ( ) : string The product class of the financial instrument issuer.
getCvv2 ( ) : string The validation code for the card. Supported for payments but not for saving payment cards for future use.
getExpireMonth ( ) : string The two-digit expiry month for the card.
getExpireYear ( ) : string The four-digit expiry year for the card.
getExternalCustomerId ( ) : string The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault.
getFirstName ( ) : string The first name of the card holder.
getId ( ) : string The ID of a credit card to save for later use.
getIssueNumber ( ) : string The one- to two-digit card issue number. Required for UK Maestro cards.
getLastName ( ) : string The last name of the card holder.
getLinks ( ) : PayPal\Api\Links[] Gets Links
getNumber ( ) : string The card number.
getStartMonth ( ) : string The two-digit start month for the card. Required for UK Maestro cards.
getStartYear ( ) : string The four-digit start year for the card. Required for UK Maestro cards.
getStatus ( ) : string The state of the funding instrument.
getType ( ) : string The card type.
getValidUntil ( ) : string The date and time until when this instrument can be used fund a payment.
removeLink ( PayPal\Api\Links $links ) Remove Links from the list.
setBillingAddress ( Address $billing_address ) The billing address for the card.
setBillingCountry ( string $billing_country ) The two-letter country code.
setCardProductClass ( string $card_product_class ) The product class of the financial instrument issuer.
setCvv2 ( string $cvv2 ) The validation code for the card. Supported for payments but not for saving payment cards for future use.
setExpireMonth ( string $expire_month ) The two-digit expiry month for the card.
setExpireYear ( string $expire_year ) The four-digit expiry year for the card.
setExternalCustomerId ( string $external_customer_id ) The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault.
setFirstName ( string $first_name ) The first name of the card holder.
setId ( string $id ) The ID of a credit card to save for later use.
setIssueNumber ( string $issue_number ) The one- to two-digit card issue number. Required for UK Maestro cards.
setLastName ( string $last_name ) The last name of the card holder.
setLinks ( PayPal\Api\Links[] $links ) Sets Links
setNumber ( string $number ) The card number.
setStartMonth ( string $start_month ) The two-digit start month for the card. Required for UK Maestro cards.
setStartYear ( string $start_year ) The four-digit start year for the card. Required for UK Maestro cards.
setStatus ( string $status ) The state of the funding instrument.
setType ( string $type ) The card type.
setValidUntil ( string $valid_until ) The date and time until when this instrument can be used fund a payment.

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

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

The billing address for the card.
public getBillingAddress ( ) : Address
Результат Address

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

The two-letter country code.
public getBillingCountry ( ) : string
Результат string

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

The product class of the financial instrument issuer.
public getCardProductClass ( ) : string
Результат string

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

The validation code for the card. Supported for payments but not for saving payment cards for future use.
public getCvv2 ( ) : string
Результат string

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

The two-digit expiry month for the card.
public getExpireMonth ( ) : string
Результат string

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

The four-digit expiry year for the card.
public getExpireYear ( ) : string
Результат string

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

The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault.
public getExternalCustomerId ( ) : string
Результат string

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

The first name of the card holder.
public getFirstName ( ) : string
Результат string

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

The ID of a credit card to save for later use.
public getId ( ) : string
Результат string

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

The one- to two-digit card issue number. Required for UK Maestro cards.
public getIssueNumber ( ) : string
Результат string

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

The last name of the card holder.
public getLastName ( ) : string
Результат string

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

The card number.
public getNumber ( ) : string
Результат string

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

The two-digit start month for the card. Required for UK Maestro cards.
public getStartMonth ( ) : string
Результат string

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

The four-digit start year for the card. Required for UK Maestro cards.
public getStartYear ( ) : string
Результат string

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

The state of the funding instrument.
public getStatus ( ) : string
Результат string

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

The card type.
public getType ( ) : string
Результат string

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

The date and time until when this instrument can be used fund a payment.
public getValidUntil ( ) : string
Результат string

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

The billing address for the card.
public setBillingAddress ( Address $billing_address )
$billing_address Address

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

The two-letter country code.
public setBillingCountry ( string $billing_country )
$billing_country string

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

Valid Values: ["CREDIT", "DEBIT", "GIFT", "PAYPAL_PREPAID", "PREPAID", "UNKNOWN"]
public setCardProductClass ( string $card_product_class )
$card_product_class string

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

The validation code for the card. Supported for payments but not for saving payment cards for future use.
public setCvv2 ( string $cvv2 )
$cvv2 string

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

The two-digit expiry month for the card.
public setExpireMonth ( string $expire_month )
$expire_month string

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

The four-digit expiry year for the card.
public setExpireYear ( string $expire_year )
$expire_year string

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

The ID of the customer who owns this card account. The facilitator generates and provides this ID. Required when you create or use a stored funding instrument in the PayPal vault.
public setExternalCustomerId ( string $external_customer_id )
$external_customer_id string

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

The first name of the card holder.
public setFirstName ( string $first_name )
$first_name string

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

The ID of a credit card to save for later use.
public setId ( string $id )
$id string

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

The one- to two-digit card issue number. Required for UK Maestro cards.
public setIssueNumber ( string $issue_number )
$issue_number string

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

The last name of the card holder.
public setLastName ( string $last_name )
$last_name string

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

The card number.
public setNumber ( string $number )
$number string

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

The two-digit start month for the card. Required for UK Maestro cards.
public setStartMonth ( string $start_month )
$start_month string

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

The four-digit start year for the card. Required for UK Maestro cards.
public setStartYear ( string $start_year )
$start_year string

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

Valid Values: ["EXPIRED", "ACTIVE"]
public setStatus ( string $status )
$status string

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

Valid Values: ["VISA", "AMEX", "SOLO", "JCB", "STAR", "DELTA", "DISCOVER", "SWITCH", "MAESTRO", "CB_NATIONALE", "CONFINOGA", "COFIDIS", "ELECTRON", "CETELEM", "CHINA_UNION_PAY", "MASTERCARD"]
public setType ( string $type )
$type string

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

The date and time until when this instrument can be used fund a payment.
public setValidUntil ( string $valid_until )
$valid_until string