PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
stripe
/
lib
<?php namespace Stripe; /** * Class Card * * @property string $id * @property string $object * @property string|null $account * @property string|null $address_city * @property string|null $address_country * @property string|null $address_line1 * @property string|null $address_line1_check * @property string|null $address_line2 * @property string|null $address_state * @property string|null $address_zip * @property string|null $address_zip_check * @property string[]|null $available_payout_methods * @property string $brand * @property string|null $country * @property string|null $currency * @property string|null $customer * @property string|null $cvc_check * @property bool|null $default_for_currency * @property string|null $dynamic_last4 * @property int $exp_month * @property int $exp_year * @property string|null $fingerprint * @property string $funding * @property string $last4 * @property \Stripe\StripeObject $metadata * @property string|null $name * @property string|null $recipient * @property string|null $tokenization_method * * @package Stripe */ class Card extends ApiResource { const OBJECT_NAME = 'card'; use ApiOperations\Delete; use ApiOperations\Update; /** * Possible string representations of the CVC check status. * @link https://stripe.com/docs/api/cards/object#card_object-cvc_check */ const CVC_CHECK_FAIL = 'fail'; const CVC_CHECK_PASS = 'pass'; const CVC_CHECK_UNAVAILABLE = 'unavailable'; const CVC_CHECK_UNCHECKED = 'unchecked'; /** * Possible string representations of the funding of the card. * @link https://stripe.com/docs/api/cards/object#card_object-funding */ const FUNDING_CREDIT = 'credit'; const FUNDING_DEBIT = 'debit'; const FUNDING_PREPAID = 'prepaid'; const FUNDING_UNKNOWN = 'unknown'; /** * Possible string representations of the tokenization method when using Apple Pay or Google Pay. * @link https://stripe.com/docs/api/cards/object#card_object-tokenization_method */ const TOKENIZATION_METHOD_APPLE_PAY = 'apple_pay'; const TOKENIZATION_METHOD_GOOGLE_PAY = 'google_pay'; /** * @return string The instance URL for this resource. It needs to be special * cased because cards are nested resources that may belong to different * top-level resources. */ public function instanceUrl() { if ($this['customer']) { $base = Customer::classUrl(); $parent = $this['customer']; $path = 'sources'; } elseif ($this['account']) { $base = Account::classUrl(); $parent = $this['account']; $path = 'external_accounts'; } elseif ($this['recipient']) { $base = Recipient::classUrl(); $parent = $this['recipient']; $path = 'cards'; } else { $msg = "Cards cannot be accessed without a customer ID, account ID or recipient ID."; throw new Exception\UnexpectedValueException($msg); } $parentExtn = urlencode(Util\Util::utf8($parent)); $extn = urlencode(Util\Util::utf8($this['id'])); return "$base/$parentExtn/$path/$extn"; } /** * @param array|string $_id * @param array|string|null $_opts * * @throws \Stripe\Exception\BadMethodCallException */ public static function retrieve($_id, $_opts = null) { $msg = "Cards cannot be retrieved without a customer ID or an " . "account ID. Retrieve a card using " . "`Customer::retrieveSource('customer_id', 'card_id')` or " . "`Account::retrieveExternalAccount('account_id', 'card_id')`."; throw new Exception\BadMethodCallException($msg); } /** * @param string $_id * @param array|null $_params * @param array|string|null $_options * * @throws \Stripe\Exception\BadMethodCallException */ public static function update($_id, $_params = null, $_options = null) { $msg = "Cards cannot be updated without a customer ID or an " . "account ID. Update a card using " . "`Customer::updateSource('customer_id', 'card_id', " . "\$updateParams)` or `Account::updateExternalAccount(" . "'account_id', 'card_id', \$updateParams)`."; throw new Exception\BadMethodCallException($msg); } }
[+]
..
[+]
Sigma
[-] Review.php
[edit]
[-] CustomerBalanceTransaction.php
[edit]
[-] BankAccount.php
[edit]
[-] WebhookSignature.php
[edit]
[+]
Radar
[-] PaymentMethod.php
[edit]
[-] LoginLink.php
[edit]
[-] Customer.php
[edit]
[-] SingletonApiResource.php
[edit]
[-] ApplicationFeeRefund.php
[edit]
[-] BalanceTransaction.php
[edit]
[-] Dispute.php
[edit]
[-] Topup.php
[edit]
[-] EphemeralKey.php
[edit]
[-] StripeObject.php
[edit]
[-] FileLink.php
[edit]
[+]
HttpClient
[-] ErrorObject.php
[edit]
[-] CreditNote.php
[edit]
[-] SubscriptionItem.php
[edit]
[-] ExchangeRate.php
[edit]
[+]
Issuing
[+]
Terminal
[-] RecipientTransfer.php
[edit]
[-] Coupon.php
[edit]
[-] Account.php
[edit]
[-] Stripe.php
[edit]
[-] WebhookEndpoint.php
[edit]
[-] File.php
[edit]
[-] Capability.php
[edit]
[-] Transfer.php
[edit]
[-] SubscriptionSchedule.php
[edit]
[+]
Util
[-] SourceTransaction.php
[edit]
[-] ApiRequestor.php
[edit]
[-] AccountLink.php
[edit]
[+]
ApiOperations
[+]
Exception
[-] Balance.php
[edit]
[-] InvoiceLineItem.php
[edit]
[-] OAuth.php
[edit]
[-] ApiResource.php
[edit]
[-] Collection.php
[edit]
[-] Webhook.php
[edit]
[-] PaymentIntent.php
[edit]
[-] UsageRecord.php
[edit]
[-] Subscription.php
[edit]
[-] SetupIntent.php
[edit]
[-] Token.php
[edit]
[-] Event.php
[edit]
[-] Recipient.php
[edit]
[-] ApplicationFee.php
[edit]
[-] Card.php
[edit]
[-] ApplePayDomain.php
[edit]
[-] Discount.php
[edit]
[-] BitcoinReceiver.php
[edit]
[-] CreditNoteLineItem.php
[edit]
[-] CountrySpec.php
[edit]
[-] TaxRate.php
[edit]
[+]
Reporting
[-] Plan.php
[edit]
[-] Source.php
[edit]
[-] OrderReturn.php
[edit]
[-] Order.php
[edit]
[-] TaxId.php
[edit]
[-] Mandate.php
[edit]
[-] Charge.php
[edit]
[-] OrderItem.php
[edit]
[-] RequestTelemetry.php
[edit]
[-] SKU.php
[edit]
[-] UsageRecordSummary.php
[edit]
[-] AlipayAccount.php
[edit]
[-] InvoiceItem.php
[edit]
[-] Product.php
[edit]
[-] TransferReversal.php
[edit]
[-] OAuthErrorObject.php
[edit]
[-] Refund.php
[edit]
[-] ThreeDSecure.php
[edit]
[-] Person.php
[edit]
[-] ApiResponse.php
[edit]
[-] Invoice.php
[edit]
[-] Payout.php
[edit]
[-] BitcoinTransaction.php
[edit]
[+]
Checkout