golden hour
/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/gateways/stripe/stripe-php/lib
⬆️ Go Up
Upload
File/Folder
Size
Actions
Account.php
16.46 KB
Del
OK
AccountLink.php
830 B
Del
OK
AlipayAccount.php
2.33 KB
Del
OK
ApiOperations
-
Del
OK
ApiRequestor.php
18.77 KB
Del
OK
ApiResource.php
3.37 KB
Del
OK
ApiResponse.php
712 B
Del
OK
ApplePayDomain.php
1016 B
Del
OK
ApplicationFee.php
4.1 KB
Del
OK
ApplicationFeeRefund.php
2.44 KB
Del
OK
Balance.php
2.31 KB
Del
OK
BalanceTransaction.php
5.54 KB
Del
OK
BankAccount.php
7.13 KB
Del
OK
BaseStripeClient.php
10.3 KB
Del
OK
BaseStripeClientInterface.php
990 B
Del
OK
BillingPortal
-
Del
OK
BitcoinReceiver.php
4.14 KB
Del
OK
BitcoinTransaction.php
885 B
Del
OK
Capability.php
2.87 KB
Del
OK
Card.php
8.31 KB
Del
OK
Charge.php
12.27 KB
Del
OK
Checkout
-
Del
OK
Collection.php
7.53 KB
Del
OK
CountrySpec.php
1.74 KB
Del
OK
Coupon.php
2.91 KB
Del
OK
CreditNote.php
5.65 KB
Del
OK
CreditNoteLineItem.php
1.85 KB
Del
OK
Customer.php
12.76 KB
Del
OK
CustomerBalanceTransaction.php
5.21 KB
Del
OK
Discount.php
1.5 KB
Del
OK
Dispute.php
5.07 KB
Del
OK
EphemeralKey.php
1.55 KB
Del
OK
ErrorObject.php
8.58 KB
Del
OK
Event.php
13.95 KB
Del
OK
Exception
-
Del
OK
ExchangeRate.php
1.41 KB
Del
OK
File.php
3.79 KB
Del
OK
FileLink.php
1.45 KB
Del
OK
HttpClient
-
Del
OK
Identity
-
Del
OK
Invoice.php
19.26 KB
Del
OK
InvoiceItem.php
3.67 KB
Del
OK
InvoiceLineItem.php
2.84 KB
Del
OK
Issuing
-
Del
OK
LineItem.php
1.16 KB
Del
OK
LoginLink.php
426 B
Del
OK
Mandate.php
1.08 KB
Del
OK
OAuth.php
3.31 KB
Del
OK
OAuthErrorObject.php
861 B
Del
OK
Order.php
5.11 KB
Del
OK
OrderItem.php
333 B
Del
OK
OrderReturn.php
1.65 KB
Del
OK
PaymentIntent.php
11.27 KB
Del
OK
PaymentMethod.php
3.72 KB
Del
OK
Payout.php
6.69 KB
Del
OK
Person.php
5.35 KB
Del
OK
Plan.php
5.55 KB
Del
OK
Price.php
5.13 KB
Del
OK
Product.php
4.02 KB
Del
OK
PromotionCode.php
2.19 KB
Del
OK
Quote.php
8.58 KB
Del
OK
Radar
-
Del
OK
Recipient.php
2.69 KB
Del
OK
RecipientTransfer.php
918 B
Del
OK
Refund.php
4.04 KB
Del
OK
Reporting
-
Del
OK
RequestTelemetry.php
539 B
Del
OK
Review.php
3.34 KB
Del
OK
SKU.php
2.82 KB
Del
OK
Service
-
Del
OK
SetupAttempt.php
2.39 KB
Del
OK
SetupIntent.php
7.05 KB
Del
OK
Sigma
-
Del
OK
SingletonApiResource.php
917 B
Del
OK
Source.php
8.37 KB
Del
OK
SourceTransaction.php
408 B
Del
OK
Stripe.php
7.05 KB
Del
OK
StripeClient.php
3.66 KB
Del
OK
StripeClientInterface.php
586 B
Del
OK
StripeObject.php
18.37 KB
Del
OK
StripeStreamingClientInterface.php
238 B
Del
OK
Subscription.php
11.07 KB
Del
OK
SubscriptionItem.php
5.47 KB
Del
OK
SubscriptionSchedule.php
3.83 KB
Del
OK
TaxCode.php
663 B
Del
OK
TaxId.php
4.79 KB
Del
OK
TaxRate.php
2.88 KB
Del
OK
Terminal
-
Del
OK
ThreeDSecure.php
2.54 KB
Del
OK
Token.php
3.54 KB
Del
OK
Topup.php
3.91 KB
Del
OK
Transfer.php
6.18 KB
Del
OK
TransferReversal.php
3.25 KB
Del
OK
UsageRecord.php
980 B
Del
OK
UsageRecordSummary.php
812 B
Del
OK
Util
-
Del
OK
Webhook.php
1.48 KB
Del
OK
WebhookEndpoint.php
2.26 KB
Del
OK
WebhookSignature.php
4.27 KB
Del
OK
Edit: Source.php
<?php // File generated from our OpenAPI spec namespace Stripe; /** * <code>Source</code> objects allow you to accept a variety of payment methods. * They represent a customer's payment instrument, and can be used with the Stripe * API just like a <code>Card</code> object: once chargeable, they can be charged, * or can be attached to customers. * * Related guides: <a href="https://stripe.com/docs/sources">Sources API</a> and <a * href="https://stripe.com/docs/sources/customers">Sources & Customers</a>. * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property \Stripe\StripeObject $ach_credit_transfer * @property \Stripe\StripeObject $ach_debit * @property \Stripe\StripeObject $acss_debit * @property \Stripe\StripeObject $alipay * @property null|int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for <code>single_use</code> sources. * @property \Stripe\StripeObject $au_becs_debit * @property \Stripe\StripeObject $bancontact * @property \Stripe\StripeObject $card * @property \Stripe\StripeObject $card_present * @property string $client_secret The client secret of the source. Used for client-side retrieval using a publishable key. * @property \Stripe\StripeObject $code_verification * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $currency Three-letter <a href="https://stripe.com/docs/currencies">ISO code for the currency</a> associated with the source. This is the currency for which the source will be chargeable once ready. Required for <code>single_use</code> sources. * @property string $customer The ID of the customer to which this source is attached. This will not be present when the source has not been attached to a customer. * @property \Stripe\StripeObject $eps * @property string $flow The authentication <code>flow</code> of the source. <code>flow</code> is one of <code>redirect</code>, <code>receiver</code>, <code>code_verification</code>, <code>none</code>. * @property \Stripe\StripeObject $giropay * @property \Stripe\StripeObject $ideal * @property \Stripe\StripeObject $klarna * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\StripeObject $multibanco * @property null|\Stripe\StripeObject $owner Information about the owner of the payment instrument that may be used or required by particular source types. * @property \Stripe\StripeObject $p24 * @property \Stripe\StripeObject $receiver * @property \Stripe\StripeObject $redirect * @property \Stripe\StripeObject $sepa_credit_transfer * @property \Stripe\StripeObject $sepa_debit * @property \Stripe\StripeObject $sofort * @property \Stripe\StripeObject $source_order * @property null|string $statement_descriptor Extra information about a source. This will appear on your customer's statement every time you charge the source. * @property string $status The status of the source, one of <code>canceled</code>, <code>chargeable</code>, <code>consumed</code>, <code>failed</code>, or <code>pending</code>. Only <code>chargeable</code> sources can be used to create a charge. * @property \Stripe\StripeObject $three_d_secure * @property string $type The <code>type</code> of the source. The <code>type</code> is a payment method, one of <code>ach_credit_transfer</code>, <code>ach_debit</code>, <code>alipay</code>, <code>bancontact</code>, <code>card</code>, <code>card_present</code>, <code>eps</code>, <code>giropay</code>, <code>ideal</code>, <code>multibanco</code>, <code>klarna</code>, <code>p24</code>, <code>sepa_debit</code>, <code>sofort</code>, <code>three_d_secure</code>, or <code>wechat</code>. An additional hash is included on the source with a name matching this value. It contains additional information specific to the <a href="https://stripe.com/docs/sources">payment method</a> used. * @property null|string $usage Either <code>reusable</code> or <code>single_use</code>. Whether this source should be reusable or not. Some source types may or may not be reusable by construction, while others may leave the option at creation. If an incompatible value is passed, an error will be returned. * @property \Stripe\StripeObject $wechat */ class Source extends ApiResource { const OBJECT_NAME = 'source'; use ApiOperations\Create; use ApiOperations\Retrieve; use ApiOperations\Update; const FLOW_CODE_VERIFICATION = 'code_verification'; const FLOW_NONE = 'none'; const FLOW_RECEIVER = 'receiver'; const FLOW_REDIRECT = 'redirect'; const STATUS_CANCELED = 'canceled'; const STATUS_CHARGEABLE = 'chargeable'; const STATUS_CONSUMED = 'consumed'; const STATUS_FAILED = 'failed'; const STATUS_PENDING = 'pending'; const USAGE_REUSABLE = 'reusable'; const USAGE_SINGLE_USE = 'single_use'; use ApiOperations\NestedResource; /** * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\UnexpectedValueException if the source is not attached to a customer * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Source the detached source */ public function detach($params = null, $opts = null) { self::_validateParams($params); $id = $this['id']; if (!$id) { $class = static::class; $msg = "Could not determine which URL to request: {$class} instance " . "has invalid ID: {$id}"; throw new Exception\UnexpectedValueException($msg, null); } if ($this['customer']) { $base = Customer::classUrl(); $parentExtn = \urlencode(Util\Util::utf8($this['customer'])); $extn = \urlencode(Util\Util::utf8($id)); $url = "{$base}/{$parentExtn}/sources/{$extn}"; list($response, $opts) = $this->_request('delete', $url, $params, $opts); $this->refreshFrom($response, $opts); return $this; } $message = 'This source object does not appear to be currently attached ' . 'to a customer object.'; throw new Exception\UnexpectedValueException($message); } /** * @deprecated sourceTransactions is deprecated. Please use Source::allSourceTransactions instead. * * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of source transactions */ public function sourceTransactions($params = null, $opts = null) { $url = $this->instanceUrl() . '/source_transactions'; list($response, $opts) = $this->_request('get', $url, $params, $opts); $obj = \Stripe\Util\Util::convertToStripeObject($response, $opts); $obj->setLastResponse($response); return $obj; } /** * @param string $id * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Collection the list of source transactions */ public static function allSourceTransactions($id, $params = null, $opts = null) { return self::_allNestedResources($id, '/source_transactions', $params, $opts); } /** * @param null|array $params * @param null|array|string $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\Source the verified source */ public function verify($params = null, $opts = null) { $url = $this->instanceUrl() . '/verify'; list($response, $opts) = $this->_request('post', $url, $params, $opts); $this->refreshFrom($response, $opts); return $this; } }
Save