Overview
  • Namespace
  • Class

Namespaces

  • PayPal
    • Api
    • Auth
    • Cache
    • Common
    • Converter
    • Core
    • Exception
    • Handler
    • Log
    • Rest
    • Security
    • Transport
    • Validation

Classes

  • Address
  • Agreement
  • AgreementDetails
  • AgreementStateDescriptor
  • AgreementTransaction
  • AgreementTransactions
  • AlternatePayment
  • Amount
  • Authorization
  • BankAccount
  • BankAccountsList
  • BankToken
  • BaseAddress
  • Billing
  • BillingAgreementToken
  • BillingInfo
  • CancelNotification
  • Capture
  • CarrierAccount
  • CarrierAccountToken
  • CartBase
  • ChargeModel
  • Cost
  • CountryCode
  • CreateProfileResponse
  • Credit
  • CreditCard
  • CreditCardHistory
  • CreditCardList
  • CreditCardToken
  • CreditFinancingOffered
  • Currency
  • CurrencyConversion
  • CustomAmount
  • DetailedRefund
  • Details
  • Error
  • ErrorDetails
  • ExtendedBankAccount
  • ExternalFunding
  • FileAttachment
  • FlowConfig
  • FmfDetails
  • FundingDetail
  • FundingInstrument
  • FundingOption
  • FundingSource
  • FuturePayment
  • HyperSchema
  • Image
  • Incentive
  • InputFields
  • InstallmentInfo
  • InstallmentOption
  • Invoice
  • InvoiceAddress
  • InvoiceItem
  • InvoiceNumber
  • InvoiceSearchResponse
  • Item
  • ItemList
  • Links
  • Measurement
  • MerchantInfo
  • MerchantPreferences
  • Metadata
  • NameValuePair
  • Notification
  • OpenIdAddress
  • OpenIdError
  • OpenIdSession
  • OpenIdTokeninfo
  • OpenIdUserinfo
  • Order
  • OverrideChargeModel
  • Participant
  • Patch
  • PatchRequest
  • Payee
  • Payer
  • PayerInfo
  • Payment
  • PaymentCard
  • PaymentCardToken
  • PaymentDefinition
  • PaymentDetail
  • PaymentExecution
  • PaymentHistory
  • PaymentInstruction
  • PaymentOptions
  • PaymentSummary
  • PaymentTerm
  • Payout
  • PayoutBatch
  • PayoutBatchHeader
  • PayoutItem
  • PayoutItemDetails
  • PayoutSenderBatchHeader
  • Phone
  • Plan
  • PlanList
  • PotentialPayerInfo
  • Presentation
  • PrivateLabelCard
  • ProcessorResponse
  • RecipientBankingInstruction
  • RedirectUrls
  • Refund
  • RefundDetail
  • RefundRequest
  • RelatedResources
  • Sale
  • Search
  • ShippingAddress
  • ShippingCost
  • ShippingInfo
  • Tax
  • Template
  • TemplateData
  • Templates
  • TemplateSettings
  • TemplateSettingsMetadata
  • Terms
  • Transaction
  • TransactionBase
  • Transactions
  • VerifyWebhookSignature
  • VerifyWebhookSignatureResponse
  • Webhook
  • WebhookEvent
  • WebhookEventList
  • WebhookEventType
  • WebhookEventTypeList
  • WebhookList
  • WebProfile

Class CreditCardToken

Class CreditCardToken

A resource representing a credit card that can be used to fund a payment.

PayPal\Common\PayPalModel
Extended by PayPal\Api\CreditCardToken
Namespace: PayPal\Api
Package: PayPal\Api
Located at PayPal/Api/CreditCardToken.php

Methods summary

public
# setCreditCardId( string $credit_card_id )

ID of credit card previously stored using /vault/credit-card.

ID of credit card previously stored using /vault/credit-card.

Parameters

$credit_card_id

Returns


$this
public string
# getCreditCardId( )

ID of credit card previously stored using /vault/credit-card.

ID of credit card previously stored using /vault/credit-card.

Returns

string
public
# 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.

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.

Parameters

$payer_id

Returns


$this
public 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.

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.

Returns

string
public
# setLast4( string $last4 )

Last four digits of the stored credit card number.

Last four digits of the stored credit card number.

Parameters

$last4

Returns


$this
public string
# getLast4( )

Last four digits of the stored credit card number.

Last four digits of the stored credit card number.

Returns

string
public
# 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.

Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.

Parameters

$type

Returns


$this
public 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.

Credit card type. Valid types are: visa, mastercard, discover, amex. Values are presented in lowercase and not should not be used for display.

Returns

string
public
# setExpireMonth( integer $expire_month )

Expiration month with no leading zero. Acceptable values are 1 through 12.

Expiration month with no leading zero. Acceptable values are 1 through 12.

Parameters

$expire_month

Returns


$this
public integer
# getExpireMonth( )

Expiration month with no leading zero. Acceptable values are 1 through 12.

Expiration month with no leading zero. Acceptable values are 1 through 12.

Returns

integer
public
# setExpireYear( integer $expire_year )

4-digit expiration year.

4-digit expiration year.

Parameters

$expire_year

Returns


$this
public integer
# getExpireYear( )

4-digit expiration year.

4-digit expiration year.

Returns

integer

Methods inherited from PayPal\Common\PayPalModel

__construct(), __get(), __isset(), __set(), __toString(), __unset(), fromArray(), fromJson(), getList(), setCredential(), toArray(), toJSON()

Properties summary

Properties inherited from PayPal\Common\PayPalModel

$credential

API documentation generated by ApiGen