PATH:
usr
/
local
/
sitepad
/
editor
/
site-data
/
plugins
/
kkart-pro
/
includes
/
gateways
/
stripe
/
stripe-php
/
lib
<?php namespace Stripe; abstract class Webhook { const DEFAULT_TOLERANCE = 300; /** * Returns an Event instance using the provided JSON payload. Throws an * Exception\UnexpectedValueException if the payload is not valid JSON, and * an Exception\SignatureVerificationException if the signature * verification fails for any reason. * * @param string $payload the payload sent by Stripe * @param string $sigHeader the contents of the signature header sent by * Stripe * @param string $secret secret used to generate the signature * @param int $tolerance maximum difference allowed between the header's * timestamp and the current time * * @throws Exception\UnexpectedValueException if the payload is not valid JSON, * @throws Exception\SignatureVerificationException if the verification fails * * @return Event the Event instance */ public static function constructEvent($payload, $sigHeader, $secret, $tolerance = self::DEFAULT_TOLERANCE) { WebhookSignature::verifyHeader($payload, $sigHeader, $secret, $tolerance); $data = \json_decode($payload, true); $jsonError = \json_last_error(); if (null === $data && \JSON_ERROR_NONE !== $jsonError) { $msg = "Invalid payload: {$payload} " . "(json_last_error() was {$jsonError})"; throw new Exception\UnexpectedValueException($msg); } return Event::constructFrom($data); } }
[+]
BillingPortal
[+]
Sigma
[-] ApplicationFeeRefund.php
[open]
[+]
..
[-] PromotionCode.php
[open]
[+]
Radar
[-] BaseStripeClient.php
[open]
[-] ApiResponse.php
[open]
[+]
Terminal
[-] FileLink.php
[open]
[-] SingletonApiResource.php
[open]
[-] TaxRate.php
[open]
[-] OAuth.php
[open]
[-] Invoice.php
[open]
[+]
Checkout
[-] ThreeDSecure.php
[open]
[-] Token.php
[open]
[+]
Service
[-] ApiResource.php
[open]
[-] Mandate.php
[open]
[-] Payout.php
[open]
[-] Charge.php
[open]
[-] ExchangeRate.php
[open]
[-] OrderReturn.php
[open]
[-] RecipientTransfer.php
[open]
[-] LoginLink.php
[open]
[-] Coupon.php
[open]
[-] Capability.php
[open]
[-] Price.php
[open]
[-] BitcoinReceiver.php
[open]
[-] WebhookEndpoint.php
[open]
[-] Stripe.php
[open]
[-] Subscription.php
[open]
[-] Discount.php
[open]
[-] SourceTransaction.php
[open]
[-] Card.php
[open]
[-] EphemeralKey.php
[open]
[-] WebhookSignature.php
[open]
[-] Balance.php
[open]
[-] UsageRecordSummary.php
[open]
[-] InvoiceLineItem.php
[open]
[-] ApplicationFee.php
[open]
[-] StripeObject.php
[open]
[-] ApplePayDomain.php
[open]
[-] CreditNote.php
[open]
[-] Person.php
[open]
[-] AccountLink.php
[open]
[-] AlipayAccount.php
[open]
[-] SetupIntent.php
[open]
[-] Source.php
[open]
[-] StripeClientInterface.php
[open]
[-] TaxId.php
[open]
[-] Transfer.php
[open]
[-] LineItem.php
[open]
[-] Account.php
[open]
[-] Webhook.php
[open]
[-] Dispute.php
[open]
[-] BalanceTransaction.php
[open]
[-] SubscriptionItem.php
[open]
[-] ErrorObject.php
[open]
[-] InvoiceItem.php
[open]
[-] OAuthErrorObject.php
[open]
[-] Customer.php
[open]
[-] Plan.php
[open]
[-] CountrySpec.php
[open]
[-] ApiRequestor.php
[open]
[-] SetupAttempt.php
[open]
[-] Order.php
[open]
[-] Topup.php
[open]
[-] BitcoinTransaction.php
[open]
[-] RequestTelemetry.php
[open]
[-] CustomerBalanceTransaction.php
[open]
[-] UsageRecord.php
[open]
[-] Event.php
[open]
[+]
Util
[-] Collection.php
[open]
[+]
ApiOperations
[-] Review.php
[open]
[-] TransferReversal.php
[open]
[-] Refund.php
[open]
[-] StripeClient.php
[open]
[-] Recipient.php
[open]
[-] PaymentIntent.php
[open]
[-] BankAccount.php
[open]
[-] OrderItem.php
[open]
[+]
HttpClient
[-] PaymentMethod.php
[open]
[-] Quote.php
[open]
[-] Product.php
[open]
[-] BaseStripeClientInterface.php
[open]
[-] TaxCode.php
[open]
[-] SKU.php
[open]
[-] StripeStreamingClientInterface.php
[open]
[+]
Reporting
[-] File.php
[open]
[-] SubscriptionSchedule.php
[open]
[-] CreditNoteLineItem.php
[open]
[+]
Exception
[+]
Identity
[+]
Issuing