Changeset 2954934 for payment-gateway-stripe-and-woocommerce-integration
- Timestamp:
- 08/17/2023 12:01:53 PM (20 months ago)
- Location:
- payment-gateway-stripe-and-woocommerce-integration
- Files:
-
- 495 added
- 5 edited
-
tags/3.8.0 (added)
-
tags/3.8.0/assets (added)
-
tags/3.8.0/assets/css (added)
-
tags/3.8.0/assets/css/apple-pay.css (added)
-
tags/3.8.0/assets/css/boot.css (added)
-
tags/3.8.0/assets/css/daterangepicker.css (added)
-
tags/3.8.0/assets/css/eh-admin.css (added)
-
tags/3.8.0/assets/css/eh-style.css (added)
-
tags/3.8.0/assets/css/style.css (added)
-
tags/3.8.0/assets/css/sweetalert2.css (added)
-
tags/3.8.0/assets/css/xcharts.min.css (added)
-
tags/3.8.0/assets/img (added)
-
tags/3.8.0/assets/img/Stripe-WooCommerce-Payment-Gateway-Product-Image.jpg (added)
-
tags/3.8.0/assets/img/affirm-preview.png (added)
-
tags/3.8.0/assets/img/affirm.svg (added)
-
tags/3.8.0/assets/img/afterpay-preview.png (added)
-
tags/3.8.0/assets/img/afterpay.png (added)
-
tags/3.8.0/assets/img/alipay.png (added)
-
tags/3.8.0/assets/img/amex.svg (added)
-
tags/3.8.0/assets/img/apple-pay.png (added)
-
tags/3.8.0/assets/img/applepay_preview.png (added)
-
tags/3.8.0/assets/img/bacs-preview.png (added)
-
tags/3.8.0/assets/img/bancontact-preview.png (added)
-
tags/3.8.0/assets/img/bancontact.svg (added)
-
tags/3.8.0/assets/img/becs-preview.png (added)
-
tags/3.8.0/assets/img/bitcoin.png (added)
-
tags/3.8.0/assets/img/boleto-preview.png (added)
-
tags/3.8.0/assets/img/card_fields_preview.png (added)
-
tags/3.8.0/assets/img/credit-card.svg (added)
-
tags/3.8.0/assets/img/crown.svg (added)
-
tags/3.8.0/assets/img/diners.svg (added)
-
tags/3.8.0/assets/img/discover.svg (added)
-
tags/3.8.0/assets/img/documentation.png (added)
-
tags/3.8.0/assets/img/eps-preview.png (added)
-
tags/3.8.0/assets/img/eps.svg (added)
-
tags/3.8.0/assets/img/fpx-preview.png (added)
-
tags/3.8.0/assets/img/fpx.svg (added)
-
tags/3.8.0/assets/img/giropay-preview.png (added)
-
tags/3.8.0/assets/img/giropay.svg (added)
-
tags/3.8.0/assets/img/glyphicons-halflings.png (added)
-
tags/3.8.0/assets/img/googlepay_preview.png (added)
-
tags/3.8.0/assets/img/grabpay-preview.png (added)
-
tags/3.8.0/assets/img/grabpay.svg (added)
-
tags/3.8.0/assets/img/green-tick.svg (added)
-
tags/3.8.0/assets/img/ideal-preview.png (added)
-
tags/3.8.0/assets/img/ideal.svg (added)
-
tags/3.8.0/assets/img/jcb.svg (added)
-
tags/3.8.0/assets/img/klarna-preview.png (added)
-
tags/3.8.0/assets/img/klarna.png (added)
-
tags/3.8.0/assets/img/load.gif (added)
-
tags/3.8.0/assets/img/maestro.svg (added)
-
tags/3.8.0/assets/img/mastercard.svg (added)
-
tags/3.8.0/assets/img/money-back.svg (added)
-
tags/3.8.0/assets/img/multibanco-preview.png (added)
-
tags/3.8.0/assets/img/multibanco.svg (added)
-
tags/3.8.0/assets/img/oxxo-preview.png (added)
-
tags/3.8.0/assets/img/p24-preview.png (added)
-
tags/3.8.0/assets/img/p24.svg (added)
-
tags/3.8.0/assets/img/sepa-preview.png (added)
-
tags/3.8.0/assets/img/sepa.png (added)
-
tags/3.8.0/assets/img/sofort-preview.png (added)
-
tags/3.8.0/assets/img/sofort.svg (added)
-
tags/3.8.0/assets/img/stripe.png (added)
-
tags/3.8.0/assets/img/stripe_checkout.gif (added)
-
tags/3.8.0/assets/img/stripe_checkout_line_items.gif (added)
-
tags/3.8.0/assets/img/support.png (added)
-
tags/3.8.0/assets/img/support.svg (added)
-
tags/3.8.0/assets/img/visa.svg (added)
-
tags/3.8.0/assets/img/webtoffee-logo_small.png (added)
-
tags/3.8.0/assets/img/wechat-preview.png (added)
-
tags/3.8.0/assets/img/wechat.svg (added)
-
tags/3.8.0/assets/img/white-crown.svg (added)
-
tags/3.8.0/assets/img/wt_logo.png (added)
-
tags/3.8.0/assets/js (added)
-
tags/3.8.0/assets/js/Chart.bundle.js (added)
-
tags/3.8.0/assets/js/daterangepicker.min.js (added)
-
tags/3.8.0/assets/js/eh-affirm.js (added)
-
tags/3.8.0/assets/js/eh-afterpay.js (added)
-
tags/3.8.0/assets/js/eh-alipay.js (added)
-
tags/3.8.0/assets/js/eh-becs.js (added)
-
tags/3.8.0/assets/js/eh-boleto.js (added)
-
tags/3.8.0/assets/js/eh-checkout.js (added)
-
tags/3.8.0/assets/js/eh-fpx.js (added)
-
tags/3.8.0/assets/js/eh-giropay.js (added)
-
tags/3.8.0/assets/js/eh-grabpay.js (added)
-
tags/3.8.0/assets/js/eh-ideal.js (added)
-
tags/3.8.0/assets/js/eh-oxxo.js (added)
-
tags/3.8.0/assets/js/eh-payment-request-button.js (added)
-
tags/3.8.0/assets/js/eh-sepa.js (added)
-
tags/3.8.0/assets/js/eh-sofort.js (added)
-
tags/3.8.0/assets/js/eh-stripe-custom.js (added)
-
tags/3.8.0/assets/js/eh-wechat.js (added)
-
tags/3.8.0/assets/js/eh_stripe_checkout.js (added)
-
tags/3.8.0/assets/js/jquery.min.js (added)
-
tags/3.8.0/assets/js/moment.min.js (added)
-
tags/3.8.0/assets/js/script.js (added)
-
tags/3.8.0/assets/js/sugar.min.js (added)
-
tags/3.8.0/assets/js/sweetalert2.min.js (added)
-
tags/3.8.0/assets/js/xcharts.min.js (added)
-
tags/3.8.0/includes (added)
-
tags/3.8.0/includes/admin (added)
-
tags/3.8.0/includes/admin/class-stripe-admin-handler.php (added)
-
tags/3.8.0/includes/class-eh-security-helper.php (added)
-
tags/3.8.0/includes/class-eh-stripe-review-request.php (added)
-
tags/3.8.0/includes/class-eh-stripe-uninstall-feedback.php (added)
-
tags/3.8.0/includes/class-gateway-stripe-alipay.php (added)
-
tags/3.8.0/includes/class-stripe-affirm.php (added)
-
tags/3.8.0/includes/class-stripe-afterpay.php (added)
-
tags/3.8.0/includes/class-stripe-api.php (added)
-
tags/3.8.0/includes/class-stripe-apple-pay.php (added)
-
tags/3.8.0/includes/class-stripe-bacs.php (added)
-
tags/3.8.0/includes/class-stripe-bancontact.php (added)
-
tags/3.8.0/includes/class-stripe-becs.php (added)
-
tags/3.8.0/includes/class-stripe-boleto.php (added)
-
tags/3.8.0/includes/class-stripe-checkout.php (added)
-
tags/3.8.0/includes/class-stripe-eps.php (added)
-
tags/3.8.0/includes/class-stripe-fpx.php (added)
-
tags/3.8.0/includes/class-stripe-general-settings.php (added)
-
tags/3.8.0/includes/class-stripe-giropay.php (added)
-
tags/3.8.0/includes/class-stripe-grabpay.php (added)
-
tags/3.8.0/includes/class-stripe-ideal.php (added)
-
tags/3.8.0/includes/class-stripe-intent-manager.php (added)
-
tags/3.8.0/includes/class-stripe-klarna.php (added)
-
tags/3.8.0/includes/class-stripe-multibanco.php (added)
-
tags/3.8.0/includes/class-stripe-oxxo.php (added)
-
tags/3.8.0/includes/class-stripe-p24.php (added)
-
tags/3.8.0/includes/class-stripe-payment-request-button.php (added)
-
tags/3.8.0/includes/class-stripe-payment-request-tab.php (added)
-
tags/3.8.0/includes/class-stripe-sepa-pay.php (added)
-
tags/3.8.0/includes/class-stripe-sofort.php (added)
-
tags/3.8.0/includes/class-stripe-wechat.php (added)
-
tags/3.8.0/includes/eh-goto-pro.php (added)
-
tags/3.8.0/includes/eh-stripe-settings-page.php (added)
-
tags/3.8.0/includes/log.php (added)
-
tags/3.8.0/includes/stripe-overview (added)
-
tags/3.8.0/includes/stripe-overview/class-overview-table-data.php (added)
-
tags/3.8.0/includes/stripe-overview/class-stripe-overview.php (added)
-
tags/3.8.0/includes/stripe-overview/include-ajax-functions.php (added)
-
tags/3.8.0/lang (added)
-
tags/3.8.0/lang/payment-gateway-stripe-and-woocommerce-integration-de_DE.mo (added)
-
tags/3.8.0/lang/payment-gateway-stripe-and-woocommerce-integration-de_DE.po (added)
-
tags/3.8.0/lang/payment-gateway-stripe-and-woocommerce-integration-fr_FR.mo (added)
-
tags/3.8.0/lang/payment-gateway-stripe-and-woocommerce-integration-fr_FR.po (added)
-
tags/3.8.0/license.txt (added)
-
tags/3.8.0/payment-gateway-stripe-and-woocommerce-integration.php (added)
-
tags/3.8.0/readme.txt (added)
-
tags/3.8.0/templates (added)
-
tags/3.8.0/templates/template-frontend-main.php (added)
-
tags/3.8.0/templates/template-order-overview.php (added)
-
tags/3.8.0/templates/template-stripe-overview.php (added)
-
tags/3.8.0/vendor (added)
-
tags/3.8.0/vendor/autoload.php (added)
-
tags/3.8.0/vendor/composer (added)
-
tags/3.8.0/vendor/composer/ClassLoader.php (added)
-
tags/3.8.0/vendor/composer/InstalledVersions.php (added)
-
tags/3.8.0/vendor/composer/LICENSE (added)
-
tags/3.8.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.8.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.8.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.8.0/vendor/composer/autoload_real.php (added)
-
tags/3.8.0/vendor/composer/autoload_static.php (added)
-
tags/3.8.0/vendor/composer/installed.json (added)
-
tags/3.8.0/vendor/composer/installed.php (added)
-
tags/3.8.0/vendor/composer/platform_check.php (added)
-
tags/3.8.0/vendor/stripe (added)
-
tags/3.8.0/vendor/stripe/stripe-php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/.editorconfig (added)
-
tags/3.8.0/vendor/stripe/stripe-php/.gitignore (added)
-
tags/3.8.0/vendor/stripe/stripe-php/.php-cs-fixer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/CHANGELOG.md (added)
-
tags/3.8.0/vendor/stripe/stripe-php/CODE_OF_CONDUCT.md (added)
-
tags/3.8.0/vendor/stripe/stripe-php/LICENSE (added)
-
tags/3.8.0/vendor/stripe/stripe-php/Makefile (added)
-
tags/3.8.0/vendor/stripe/stripe-php/OPENAPI_VERSION (added)
-
tags/3.8.0/vendor/stripe/stripe-php/README.md (added)
-
tags/3.8.0/vendor/stripe/stripe-php/VERSION (added)
-
tags/3.8.0/vendor/stripe/stripe-php/build.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/composer.json (added)
-
tags/3.8.0/vendor/stripe/stripe-php/data (added)
-
tags/3.8.0/vendor/stripe/stripe-php/data/ca-certificates.crt (added)
-
tags/3.8.0/vendor/stripe/stripe-php/init.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Account.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/AccountLink.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/AlipayAccount.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/All.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Create.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Delete.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/NestedResource.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Request.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Retrieve.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Search.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/SingletonRetrieve.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiOperations/Update.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiRequestor.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiResource.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApiResponse.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApplePayDomain.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApplicationFee.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ApplicationFeeRefund.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Apps (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Apps/Secret.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Balance.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BalanceTransaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BankAccount.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BaseStripeClient.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BaseStripeClientInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BillingPortal (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BillingPortal/Configuration.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/BillingPortal/Session.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Capability.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Card.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CashBalance.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Charge.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Checkout (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Checkout/Session.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Collection.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CountrySpec.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Coupon.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CreditNote.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CreditNoteLineItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Customer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CustomerBalanceTransaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/CustomerCashBalanceTransaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Discount.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Dispute.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/EphemeralKey.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ErrorObject.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Event.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/AuthenticationException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/BadMethodCallException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/CardException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/ExceptionInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/InvalidArgumentException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/PermissionException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/RateLimitException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ExchangeRate.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/File.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FileLink.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FinancialConnections (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FinancialConnections/Account.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FinancialConnections/AccountOwner.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FinancialConnections/AccountOwnership.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FinancialConnections/Session.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/FundingInstructions.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/HttpClient (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/HttpClient/ClientInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/HttpClient/StreamingClientInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Identity (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Identity/VerificationReport.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Identity/VerificationSession.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Invoice.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/InvoiceItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/InvoiceLineItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/Authorization.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/Card.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/CardDetails.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/Cardholder.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/Dispute.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Issuing/Transaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/LineItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/LoginLink.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Mandate.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/OAuth.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/OAuthErrorObject.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Order.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/PaymentIntent.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/PaymentLink.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/PaymentMethod.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Payout.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Person.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Plan.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Price.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Product.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/PromotionCode.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Quote.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Radar (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Radar/EarlyFraudWarning.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Radar/ValueList.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Radar/ValueListItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/RecipientTransfer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Refund.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Reporting (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Reporting/ReportRun.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Reporting/ReportType.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/RequestTelemetry.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Review.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SKU.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SearchResult.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/AbstractService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/AccountLinkService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/AccountService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Apps (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Apps/AppsServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Apps/SecretService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BalanceService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BillingPortal (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ChargeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Checkout (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/CouponService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/CustomerService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/DisputeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/EventService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FileLinkService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FileService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FinancialConnections (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Identity (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/InvoiceService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/MandateService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/OAuthService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/OrderService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PayoutService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PlanService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PriceService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ProductService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/QuoteService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Radar (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/RefundService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Reporting (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ReviewService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Sigma (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SkuService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SourceService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TaxRateService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/CustomerService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/CardService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/InboundTransferService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundPaymentService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/OutboundTransferService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedCreditService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/ReceivedDebitService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TestHelpers/Treasury/TreasuryServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TokenService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TopupService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/TransferService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/CreditReversalService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/DebitReversalService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/FinancialAccountService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/InboundTransferService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/OutboundPaymentService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/OutboundTransferService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/ReceivedCreditService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/ReceivedDebitService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/TransactionEntryService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/TransactionService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/Treasury/TreasuryServiceFactory.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SetupAttempt.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SetupIntent.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/ShippingRate.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Sigma (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Sigma/ScheduledQueryRun.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SingletonApiResource.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Source.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SourceTransaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Stripe.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/StripeClient.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/StripeClientInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/StripeObject.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/StripeStreamingClientInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Subscription.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SubscriptionItem.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/SubscriptionSchedule.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TaxCode.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TaxId.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TaxRate.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Terminal (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Terminal/Configuration.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Terminal/ConnectionToken.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Terminal/Location.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Terminal/Reader.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TestHelpers (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TestHelpers/TestClock.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Token.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Topup.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Transfer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/TransferReversal.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/CreditReversal.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/DebitReversal.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/FinancialAccount.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/FinancialAccountFeatures.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/InboundTransfer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/OutboundPayment.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/OutboundTransfer.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/ReceivedCredit.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/ReceivedDebit.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/Transaction.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Treasury/TransactionEntry.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/UsageRecord.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/UsageRecordSummary.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/ApiVersion.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/CaseInsensitiveArray.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/DefaultLogger.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/LoggerInterface.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/ObjectTypes.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/RandomGenerator.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/RequestOptions.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/Set.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Util/Util.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/Webhook.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/WebhookEndpoint.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/lib/WebhookSignature.php (added)
-
tags/3.8.0/vendor/stripe/stripe-php/phpdoc.dist.xml (added)
-
tags/3.8.0/vendor/stripe/stripe-php/phpstan-baseline.neon (added)
-
tags/3.8.0/vendor/stripe/stripe-php/phpstan.neon.dist (added)
-
tags/3.8.0/vendor/stripe/stripe-php/update_certs.php (added)
-
trunk/includes/admin/class-stripe-admin-handler.php (modified) (2 diffs)
-
trunk/includes/class-stripe-general-settings.php (modified) (1 diff)
-
trunk/includes/class-stripe-sepa-pay.php (modified) (1 diff)
-
trunk/payment-gateway-stripe-and-woocommerce-integration.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payment-gateway-stripe-and-woocommerce-integration/trunk/includes/admin/class-stripe-admin-handler.php
r2776933 r2954934 21 21 add_action( 'admin_notices', array( $this, 'eh_menu_admin_notices' ) ); 22 22 add_action('init', 'add_thickbox' ); 23 23 add_action('admin_notices', array($this, 'add_wt_stripe_notice' ), 99); 24 24 25 } 25 26 27 public function add_wt_stripe_notice() 28 { 29 $eh_stripe = get_option("woocommerce_eh_stripe_pay_settings"); 30 31 if(!isset($eh_stripe['eh_stripe_webhook_secret']) || (isset($eh_stripe['eh_stripe_webhook_secret']) && empty($eh_stripe['eh_stripe_webhook_secret']))){ 32 if(isset($_GET['page']) && $_GET['page'] == 'wt_stripe_menu'){ 33 //$setting_link = admin_url('admin.php?page=wt_stripe_menu'); 34 $message = sprintf(__('%1$sSecurity alert:%2$s Webhook secret is not configured within the %3$sStripe Payment Gateway for WooCommerce%4$s. To ensure extra security, it is strongly recommended to populate this field.', 'payment-gateway-stripe-and-woocommerce-integration'), '<strong>', '</strong>', '<strong>', '</strong>'); 35 36 37 } 38 else{ 39 $setting_link = admin_url('admin.php?page=wt_stripe_menu'); 40 $message = sprintf(__('%1$sSecurity alert:%2$s Webhook secret is not configured within the %3$sStripe Payment Gateway for WooCommerce%4$s. To ensure extra security, it is strongly recommended to populate this field. Please set your Webhook secret<a href="'.$setting_link.'" > here.</a>', 'payment-gateway-stripe-and-woocommerce-integration'), '<strong>', '</strong>', '<strong>', '</strong>'); 41 42 } 43 echo wp_kses_post("<div class='notice notice-warning is-dismissible' style='background-color: #fbf9e8;'><p>$message</p></div>"); 44 } 45 } 26 46 /** 27 47 * register admin scripts. … … 1189 1209 </ul><?php 1190 1210 1191 } 1211 } 1192 1212 1193 1213 } -
payment-gateway-stripe-and-woocommerce-integration/trunk/includes/class-stripe-general-settings.php
r2945311 r2954934 101 101 'description' => sprintf(__('Stripe uses webhooks to notify charge statuses and update order statuses for payment method like SEPA Direct Debit, Klarna, Bacs Direct Debit, BECS Direct Debit, Boleto, OXXO, Sofort, Stripe Checkout.%1$sTo confgure, add the following webhook endpoint %2$s %3$s %4$s to your <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Stripe account (Dashboard > Developers > Webhooks > Add endpoint)</a>%5$s', 'payment-gateway-stripe-and-woocommerce-integration'), '<p>', '<br><b>', $url, '</b>', '</p>'), 102 102 ), 103 'eh_stripe_webhook_secret' => array( 104 'title' => __('Webhook secret', 'payment-gateway-stripe-and-woocommerce-integration'), 105 'type' => 'text', 106 'description' => __('Webhook secret to ensure the requests are coming from Stripe.', 'payment-gateway-stripe-and-woocommerce-integration'), 107 'placeholder' => 'Webhook secret', 108 'desc_tip' => true 109 ), 103 110 'eh_stripe_log_title' => array( 104 111 'title' => sprintf('<span style="font-weight: bold; font-size: 15px; color:#23282d;">'.__( 'Debug','payment-gateway-stripe-and-woocommerce-integration' ).'<span>'), -
payment-gateway-stripe-and-woocommerce-integration/trunk/includes/class-stripe-sepa-pay.php
r2945311 r2954934 650 650 651 651 $raw_post = file_get_contents( 'php://input' ); 652 if (!empty($raw_post)) { 653 $decoded = json_decode( $raw_post, true ); 654 655 if (!empty($decoded)) { 656 657 EH_Stripe_Log::log_update('live', $decoded, get_bloginfo('blogname') . ' - WebHook event'); 658 switch (strtolower($decoded['type'])) { 659 case 'charge.succeeded': 660 case 'charge.failed': 661 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 662 $order_id = $decoded['data']['object']['metadata']['order_id']; 663 664 $transaction_id = sanitize_text_field($decoded['data']['object']['id']); 665 666 667 if(!$order = wc_get_order( $order_id )){ 668 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 669 $meta = $wpdb->get_results( "SELECT order_id FROM " . $wpdb->prefix . "wc_orders_meta WHERE meta_key = '_transaction_id' AND meta_value= '" . $transaction_id . "'" ); 670 } 671 else{ 672 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_transaction_id' AND meta_value= '" . $transaction_id . "'" ); 673 } 674 675 if (!empty($meta) && isset($meta[0]->post_id)) { 676 $order_id = $meta[0]->post_id; 677 $order = wc_get_order( $order_id ); 678 } 679 else if(isset($decoded['data']['object']['payment_intent'])){ 680 $payment_intent_id = sanitize_text_field($decoded['data']['object']['payment_intent']); 652 $sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE']; 653 $eh_stripe_option = get_option("woocommerce_eh_stripe_pay_settings"); 654 $endpoint_secret = isset($eh_stripe_option["eh_stripe_webhook_secret"]) ? $eh_stripe_option["eh_stripe_webhook_secret"] : ''; 655 656 try { 657 658 if(!empty($endpoint_secret)){ 659 $event = \Stripe\Webhook::constructEvent( 660 $raw_post, $sig_header, $endpoint_secret, 1000 661 ); 662 663 if(empty($event)){ 664 throw new Exception("Error Processing Request", 1); 665 666 } 667 } 668 669 if (!empty($raw_post)) { 670 $decoded = json_decode( $raw_post, true ); 671 672 if (!empty($decoded)) { 673 674 EH_Stripe_Log::log_update('live', $decoded, get_bloginfo('blogname') . ' - WebHook event'); 675 switch (strtolower($decoded['type'])) { 676 case 'charge.succeeded': 677 case 'charge.failed': 678 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 679 $order_id = $decoded['data']['object']['metadata']['order_id']; 680 681 $transaction_id = sanitize_text_field($decoded['data']['object']['id']); 682 683 684 if(!$order = wc_get_order( $order_id )){ 681 685 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 682 $meta = $wpdb->get_results( "SELECT order_id FROM " . $wpdb->prefix . "wc_orders_meta WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= '" . $payment_intent_id . "'");686 $meta = $wpdb->get_results( $wpdb->prepare("SELECT order_id FROM %swc_orders_meta WHERE meta_key = '_transaction_id' AND meta_value= %s", array($wpdb->prefix, $transaction_id) )); 683 687 } 684 688 else{ 685 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= '" . $payment_intent_id . "'");686 } 687 689 $meta = $wpdb->get_results( $wpdb->prepare("SELECT post_id FROM %s WHERE meta_key = '_transaction_id' AND meta_value = %s", array($wpdb->postmeta, $transaction_id) )); 690 } 691 688 692 if (!empty($meta) && isset($meta[0]->post_id)) { 689 693 $order_id = $meta[0]->post_id; 690 694 $order = wc_get_order( $order_id ); 691 } 692 } 693 694 } 695 696 if (!$order) { 697 exit; 698 } 699 700 $obj1 = new EH_Stripe_Payment(); 701 $charge_param = $obj1->make_charge_params($decoded['data']['object'], $order_id); 702 EH_Helper_Class::wt_stripe_order_db_operations($order_id, $order, 'update', '_eh_stripe_payment_charge', $charge_param, false); 703 704 if ( 'on-hold' == $order->status || 'pending' == $order->status) { 705 if (isset($decoded['data']['object']['status']) && $decoded['data']['object']['status'] == 'succeeded') { 706 $status = $decoded['data']['object']['status']; 707 708 $order->set_transaction_id( sanitize_text_field($decoded['data']['object']['id'] )); 709 710 711 $order_time = date('Y-m-d H:i:s', time() + get_option('gmt_offset') * 3600); 712 $source_type = $decoded['data']['object']['payment_method_details']['type']; 713 $source_type = (isset($decoded['data']['object']['payment_method_details']['type']) ? $decoded['data']['object']['payment_method_details']['type'] : (isset($decoded['data']['object']['source']['type']) ? $decoded['data']['object']['source']['type'] : 'unknown') ); 714 $balance_transaction_id = ((is_array($decoded['data']['object']['balance_transaction']) && isset($decoded['data']['object']['balance_transaction']['id'])) ? $decoded['data']['object']['balance_transaction']['id'] : (isset($decoded['data']['object']['balance_transaction']) ? $decoded['data']['object']['balance_transaction'] : 'unknown')); 715 716 717 718 if ($decoded['data']['object']['captured'] == true) { 719 $captured = 'Captured'; 720 $order->payment_complete( $transaction_id ); 721 695 } 696 else if(isset($decoded['data']['object']['payment_intent'])){ 697 $payment_intent_id = sanitize_text_field($decoded['data']['object']['payment_intent']); 698 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 699 $meta = $wpdb->get_results($wpdb->prepare( "SELECT order_id FROM %swc_orders_meta WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value = %s", array($wpdb->prefix, $payment_intent_id))); 722 700 } 723 701 else{ 724 $captured = 'Uncaptured'; 725 $order->update_status('on-hold'); 726 } 727 $order->add_order_note( __('Payment Status : ', 'payment-gateway-stripe-and-woocommerce-integration') . ucfirst($status) .' [ ' . $order_time . ' ] . ' . __('Source : ', 'payment-gateway-stripe-and-woocommerce-integration') . $source_type . '. ' . __('Charge Status :', 'payment-gateway-stripe-and-woocommerce-integration') . $captured . __('. Transaction ID : ', 'payment-gateway-stripe-and-woocommerce-integration') . $balance_transaction_id . __('. via webhook', 'payment-gateway-stripe-and-woocommerce-integration') ); 728 } 729 else { 730 // Set order status to payment failed 731 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 702 $meta = $wpdb->get_results($wpdb->prepare( "SELECT post_id FROM %s WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= %s", array($wpdb->postmeta, $payment_intent_id)) ); 703 } 704 705 if (!empty($meta) && isset($meta[0]->post_id)) { 706 $order_id = $meta[0]->post_id; 707 $order = wc_get_order( $order_id ); 708 } 709 } 710 711 } 712 713 if (!$order) { 714 exit; 715 } 716 717 $obj1 = new EH_Stripe_Payment(); 718 $charge_param = $obj1->make_charge_params($decoded['data']['object'], $order_id); 719 EH_Helper_Class::wt_stripe_order_db_operations($order_id, $order, 'update', '_eh_stripe_payment_charge', $charge_param, false); 720 721 if ( 'on-hold' === $order->status || 'pending' === $order->status) { 722 if (isset($decoded['data']['object']['status']) && $decoded['data']['object']['status'] === 'succeeded') { 723 $status = $decoded['data']['object']['status']; 724 725 $order->set_transaction_id( sanitize_text_field($decoded['data']['object']['id'] )); 726 727 728 $order_time = date('Y-m-d H:i:s', time() + get_option('gmt_offset') * 3600); 729 $source_type = $decoded['data']['object']['payment_method_details']['type']; 730 $source_type = (isset($decoded['data']['object']['payment_method_details']['type']) ? $decoded['data']['object']['payment_method_details']['type'] : (isset($decoded['data']['object']['source']['type']) ? $decoded['data']['object']['source']['type'] : 'unknown') ); 731 $balance_transaction_id = ((is_array($decoded['data']['object']['balance_transaction']) && isset($decoded['data']['object']['balance_transaction']['id'])) ? $decoded['data']['object']['balance_transaction']['id'] : (isset($decoded['data']['object']['balance_transaction']) ? $decoded['data']['object']['balance_transaction'] : 'unknown')); 732 733 734 735 if ($decoded['data']['object']['captured'] == true) { 736 $captured = 'Captured'; 737 $order->payment_complete( $transaction_id ); 738 739 } 740 else{ 741 $captured = 'Uncaptured'; 742 $order->update_status('on-hold'); 743 } 744 $order->add_order_note( __('Payment Status : ', 'payment-gateway-stripe-and-woocommerce-integration') . ucfirst($status) .' [ ' . $order_time . ' ] . ' . __('Source : ', 'payment-gateway-stripe-and-woocommerce-integration') . $source_type . '. ' . __('Charge Status :', 'payment-gateway-stripe-and-woocommerce-integration') . $captured . __('. Transaction ID : ', 'payment-gateway-stripe-and-woocommerce-integration') . $balance_transaction_id . __('. via webhook', 'payment-gateway-stripe-and-woocommerce-integration') ); 745 } 746 else { 747 // Set order status to payment failed 748 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 749 } 732 750 } 733 751 } 734 } 735 break; 736 737 case 'charge.dispute.created': 738 if (isset($decoded['data']['object']['charge'])) { 739 $charge_id = sanitize_text_field($decoded['data']['object']['charge']); 740 if (!empty($charge_id)) { 741 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 742 $meta = $wpdb->get_results( "SELECT order_id FROM " . $wpdb->prefix . "wc_orders_meta WHERE meta_key = '_transaction_id' AND meta_value= '" . $charge_id . "'" ); 743 } 744 else{ 745 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_transaction_id' AND meta_value= '" . $charge_id . "'" ); 746 } 747 if (!empty($meta)) { 748 $order_id = $meta[0]->post_id; 749 $order = wc_get_order( $order_id ); 750 751 $order->add_order_note( __('A dispute was created for this order : ', 'payment-gateway-stripe-and-woocommerce-integration') . $decoded['data']['object']['charge']); 752 753 // Set order status to payment failed 754 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 755 } 756 } 757 } 758 break; 759 760 /*case 'charge.refund.updated': 761 if (isset($decoded['data']['object']['charge'])) { 762 $charge_id = sanitize_text_field($decoded['data']['object']['charge']); 763 if (!empty($charge_id)) { 764 if (isset($decoded['data']['object']['object']) && $decoded['data']['object']['object'] == 'refund') { 765 766 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_transaction_id' AND meta_value= '" . $charge_id . "'" ); 752 break; 753 754 case 'charge.dispute.created': 755 if (isset($decoded['data']['object']['charge'])) { 756 $charge_id = sanitize_text_field($decoded['data']['object']['charge']); 757 if (!empty($charge_id)) { 758 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 759 $meta = $wpdb->get_results($wpdb->prepare( "SELECT order_id FROM %swc_orders_meta WHERE meta_key = '_transaction_id' AND meta_value= %s", array($wpdb->prefix, $charge_id )) ); 760 } 761 else{ 762 $meta = $wpdb->get_results($wpdb->prepare( "SELECT post_id FROM %s WHERE meta_key = '_transaction_id' AND meta_value= %s", array($wpdb->postmeta, $charge_id)) ); 763 } 767 764 if (!empty($meta)) { 768 765 $order_id = $meta[0]->post_id; 769 766 $order = wc_get_order( $order_id ); 770 767 771 } 772 773 $refund_params = get_post_meta($order_id, '_eh_stripe_payment_refund', true); 774 if(isset($refund_params['transaction_id']) && !empty($refund_params['transaction_id']) && $refund_params['transaction_id'] != $decoded['data']['object']['balance_transaction']){ 775 776 777 $refund_amount = EH_Stripe_Payment::reset_stripe_amount($decoded['data']['object']['amount'], $order->get_currency()); 778 779 if ($decoded['data']['object']['status'] == 'failed') { 780 $reason = ((isset($decoded['data']['object']['failure_reason']) && !empty($decoded['data']['object']['failure_reason'])) ? $decoded['data']['object']['failure_reason'] 781 : 'Refund failed - Unknown error occurred'); 782 $order->add_order_note( __('Refund of ' . get_woocommerce_currency_symbol() . $refund_amount . ' failed - ' . $reason, 'payment-gateway-stripe-and-woocommerce-integration')); 783 784 // Set order status to payment failed 785 $order->update_status( 'processing', sprintf( __( 'Refund Failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 768 $order->add_order_note( __('A dispute was created for this order : ', 'payment-gateway-stripe-and-woocommerce-integration') . $decoded['data']['object']['charge']); 769 770 // Set order status to payment failed 771 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 772 } 773 } 774 } 775 break; 776 777 /*case 'charge.refund.updated': 778 if (isset($decoded['data']['object']['charge'])) { 779 $charge_id = sanitize_text_field($decoded['data']['object']['charge']); 780 if (!empty($charge_id)) { 781 if (isset($decoded['data']['object']['object']) && $decoded['data']['object']['object'] == 'refund') { 782 783 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_transaction_id' AND meta_value= '" . $charge_id . "'" ); 784 if (!empty($meta)) { 785 $order_id = $meta[0]->post_id; 786 $order = wc_get_order( $order_id ); 787 786 788 } 787 else{ 788 789 $order->add_order_note((__('Amount : ', 'payment-gateway-stripe-and-woocommerce-integration') .get_woocommerce_currency_symbol() . $refund_amount . '.<br>' . __('Status : ', 'payment-gateway-stripe-and-woocommerce-integration') . 'Success' . (is_null($decoded['data']['object']['balance_transaction']) ? '' : '<br>' . __('Transaction ID : ', 'payment-gateway-stripe-and-woocommerce-integration') . $decoded['data']['object']['balance_transaction'] ))); 790 791 // Set order status to payment failed 792 $order->update_status( 'refunded', sprintf( __( 'Refunded.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 789 790 $refund_params = get_post_meta($order_id, '_eh_stripe_payment_refund', true); 791 if(isset($refund_params['transaction_id']) && !empty($refund_params['transaction_id']) && $refund_params['transaction_id'] != $decoded['data']['object']['balance_transaction']){ 792 793 794 $refund_amount = EH_Stripe_Payment::reset_stripe_amount($decoded['data']['object']['amount'], $order->get_currency()); 795 796 if ($decoded['data']['object']['status'] == 'failed') { 797 $reason = ((isset($decoded['data']['object']['failure_reason']) && !empty($decoded['data']['object']['failure_reason'])) ? $decoded['data']['object']['failure_reason'] 798 : 'Refund failed - Unknown error occurred'); 799 $order->add_order_note( __('Refund of ' . get_woocommerce_currency_symbol() . $refund_amount . ' failed - ' . $reason, 'payment-gateway-stripe-and-woocommerce-integration')); 800 801 // Set order status to payment failed 802 $order->update_status( 'processing', sprintf( __( 'Refund Failed.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 803 } 804 else{ 805 806 $order->add_order_note((__('Amount : ', 'payment-gateway-stripe-and-woocommerce-integration') .get_woocommerce_currency_symbol() . $refund_amount . '.<br>' . __('Status : ', 'payment-gateway-stripe-and-woocommerce-integration') . 'Success' . (is_null($decoded['data']['object']['balance_transaction']) ? '' : '<br>' . __('Transaction ID : ', 'payment-gateway-stripe-and-woocommerce-integration') . $decoded['data']['object']['balance_transaction'] ))); 807 808 // Set order status to payment failed 809 $order->update_status( 'refunded', sprintf( __( 'Refunded.', 'payment-gateway-stripe-and-woocommerce-integration' ) ) ); 810 } 793 811 } 794 812 } 795 } 796 797 }798 }799 break;800 */801 case 'payment_intent.succeeded':802 case 'payment_intent.payment_failed':803 if (isset($decoded['data']['object']['id']) && !empty($decoded['data']['object']['id'])) {804 $intent_id = sanitize_text_field($decoded['data']['object']['id']);805 806 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) {807 $order_id = $decoded['data']['object']['metadata']['order_id'];808 if (!$order = wc_get_order( $order_id )) {809 //if sequential plugin is installed payapl response return order no instead of order id. Then get order id from order number810 if(class_exists('Wt_Advanced_Order_Number')){811 $args = array(812 'post_type' => 'shop_order',813 'post_status' => 'any',814 'meta_query' =>array(815 array(816 'key' => '_order_number',817 'value' => $order_id, //here you pass the Order Number818 'compare' => '=',813 814 } 815 } 816 break; 817 */ 818 case 'payment_intent.succeeded': 819 case 'payment_intent.payment_failed': 820 if (isset($decoded['data']['object']['id']) && !empty($decoded['data']['object']['id'])) { 821 $intent_id = sanitize_text_field($decoded['data']['object']['id']); 822 823 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 824 $order_id = $decoded['data']['object']['metadata']['order_id']; 825 if (!$order = wc_get_order( $order_id )) { 826 //if sequential plugin is installed payapl response return order no instead of order id. Then get order id from order number 827 if(class_exists('Wt_Advanced_Order_Number')){ 828 $args = array( 829 'post_type' => 'shop_order', 830 'post_status' => 'any', 831 'meta_query' => array( 832 array( 833 'key' => '_order_number', 834 'value' => $order_id, //here you pass the Order Number 835 'compare' => '=', 836 ) 819 837 ) 820 ) 821 ); 822 $query = new WP_Query( $args ); 823 if ( !empty( $query->posts ) ) { 824 $order_id = $query->posts[ 0 ]->ID; 825 } 826 } 827 } 828 } 829 else{ 830 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 831 $meta = $wpdb->get_results( "SELECT order_id FROM " . $wpdb->prefix . "wc_orders_meta WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= '" . $intent_id . "'" ); 838 ); 839 $query = new WP_Query( $args ); 840 if ( !empty( $query->posts ) ) { 841 $order_id = $query->posts[ 0 ]->ID; 842 } 843 } 844 } 832 845 } 833 846 else{ 834 $meta = $wpdb->get_results( "SELECT post_id FROM " . $wpdb->postmeta ." WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= '" . $intent_id . "'" ); 835 } 836 837 if (!empty($meta) && isset($meta[0]->post_id)) { 838 $order_id = $meta[0]->post_id; 839 840 } 841 } 842 843 if (!empty($order_id)) { 844 if($order = wc_get_order( $order_id )){ 845 $request = array('id' => $intent_id); 846 $reqst_json = json_encode($request ); 847 if ( 'on-hold' == $order->status || 'pending' == $order->status) { 848 849 if (isset($decoded['data']['object']['status']) && $decoded['data']['object']['status'] == 'succeeded') { 850 $obj1 = new EH_Stripe_Payment(); 851 $charge_param = $obj1->make_charge_params($decoded['data']['object']['charges']['data'][0], $order_id); 852 EH_Helper_Class::wt_stripe_order_db_operations($order_id, $order, 'update', '_eh_stripe_payment_charge', $charge_param, false); 853 854 $order_time = date('Y-m-d H:i:s', time() + get_option('gmt_offset') * 3600); 855 if ($decoded['data']['object']['charges']['data'][0]['paid'] == true) { 856 857 if($decoded['data']['object']['charges']['data'][0]['captured'] == true){ 858 $order->payment_complete($charge_param['id']); 847 if(true === EH_Stripe_Payment::wt_stripe_is_HPOS_compatibile()){ 848 $meta = $wpdb->get_results($wpdb->prepare( "SELECT order_id FROM %s wc_orders_meta WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= %s", array($wpdb->prefix, $intent_id)) ); 849 } 850 else{ 851 $meta = $wpdb->get_results($wpdb->prepare( "SELECT post_id FROM %s WHERE meta_key = '_eh_stripe_payment_intent' AND meta_value= %s", array($wpdb->postmeta, $intent_id)) ); 852 } 853 854 if (!empty($meta) && isset($meta[0]->post_id)) { 855 $order_id = $meta[0]->post_id; 856 857 } 858 } 859 860 if (!empty($order_id)) { 861 if($order = wc_get_order( $order_id )){ 862 $request = array('id' => $intent_id); 863 $reqst_json = json_encode($request ); 864 if ( 'on-hold' === $order->status || 'pending' === $order->status) { 865 866 if (isset($decoded['data']['object']['status']) && $decoded['data']['object']['status'] === 'succeeded') { 867 $obj1 = new EH_Stripe_Payment(); 868 $charge_param = $obj1->make_charge_params($decoded['data']['object']['charges']['data'][0], $order_id); 869 EH_Helper_Class::wt_stripe_order_db_operations($order_id, $order, 'update', '_eh_stripe_payment_charge', $charge_param, false); 870 871 $order_time = date('Y-m-d H:i:s', time() + get_option('gmt_offset') * 3600); 872 if ($decoded['data']['object']['charges']['data'][0]['paid'] == true) { 873 874 if($decoded['data']['object']['charges']['data'][0]['captured'] == true){ 875 $order->payment_complete($charge_param['id']); 876 } 877 if (!$decoded['data']['object']['charges']['data'][0]['captured']) { 878 $order->update_status('on-hold'); 879 } 880 $order->add_order_note(__('Payment Status : ', 'payment_gateway_stripe_and_woocommerce_integration') . ucfirst($charge_param['status']) . ' [ ' . $order_time . ' ] . ' . __('Source : ', 'payment_gateway_stripe_and_woocommerce_integration') . $charge_param['source_type'] . '. ' . __('Charge Status :', 'payment_gateway_stripe_and_woocommerce_integration') . $charge_param['captured'] . (is_null($charge_param['transaction_id']) ? '' : '. <br>'.__('Transaction ID : ','payment_gateway_stripe_and_woocommerce_integration') . $charge_param['transaction_id'])); 881 WC()->cart->empty_cart(); 882 EH_Stripe_Log::log_update('live', $charge_param, get_bloginfo('blogname') . ' - Charge - Order #' . $order->get_order_number()); 883 884 } else { 885 EH_Stripe_Log::log_update('dead', $decoded['data']['object']['charges']['data'][0], get_bloginfo('blogname') . ' - Charge - Order #' . $order->get_order_number()); 886 } 887 888 889 } 890 else { 891 // Set order status to payment failed 892 $reason = 'Payment failed'; 893 if(isset($decoded['data']['object']['charges']['data'][0]['failure_message']) && !empty($decoded['data']['object']['charges']['data'][0]['failure_message'])){ 894 $reason .= ' - ' .$decoded['data']['object']['charges']['data'][0]['failure_message']; 859 895 } 860 if (!$decoded['data']['object']['charges']['data'][0]['captured']) { 861 $order->update_status('on-hold'); 862 } 863 $order->add_order_note(__('Payment Status : ', 'payment_gateway_stripe_and_woocommerce_integration') . ucfirst($charge_param['status']) . ' [ ' . $order_time . ' ] . ' . __('Source : ', 'payment_gateway_stripe_and_woocommerce_integration') . $charge_param['source_type'] . '. ' . __('Charge Status :', 'payment_gateway_stripe_and_woocommerce_integration') . $charge_param['captured'] . (is_null($charge_param['transaction_id']) ? '' : '. <br>'.__('Transaction ID : ','payment_gateway_stripe_and_woocommerce_integration') . $charge_param['transaction_id'])); 864 WC()->cart->empty_cart(); 865 EH_Stripe_Log::log_update('live', $charge_param, get_bloginfo('blogname') . ' - Charge - Order #' . $order->get_order_number()); 866 867 } else { 868 EH_Stripe_Log::log_update('dead', $decoded['data']['object']['charges']['data'][0], get_bloginfo('blogname') . ' - Charge - Order #' . $order->get_order_number()); 869 } 870 871 872 } 873 else { 874 // Set order status to payment failed 875 $reason = 'Payment failed'; 876 if(isset($decoded['data']['object']['charges']['data'][0]['failure_message']) && !empty($decoded['data']['object']['charges']['data'][0]['failure_message'])){ 877 $reason .= ' - ' .$decoded['data']['object']['charges']['data'][0]['failure_message']; 878 } 879 880 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment_gateway_stripe_and_woocommerce_integration' ) ) ); 881 } 882 } 883 } 884 } 885 886 } 887 888 break; 889 890 891 case 'source.chargeable': 892 893 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 894 $order_id = $decoded['data']['object']['metadata']['order_id']; 895 } 896 elseif(isset($decoded['data']['object']['redirect']['return_url']) && !empty($decoded['data']['object']['redirect']['return_url'])){ 897 $return_url = $decoded['data']['object']['redirect']['return_url']; 898 $arr_parts = wp_parse_url($return_url); 899 if(isset($arr_parts) && !empty($arr_parts) && isset($arr_parts['query']) && !empty($arr_parts['query'])){ 900 wp_parse_str($arr_parts['query'], $arr_params); 901 if(!empty($arr_params) && isset($arr_params['order_id']) && !empty($arr_params['order_id'])){ 902 $order_id = $arr_params['order_id']; 903 } 904 } 905 } 906 if(isset($order_id) && !empty($order_id)){ 907 $source_id = sanitize_text_field($decoded['data']['object']['id']); 908 909 $order = wc_get_order( $order_id ); 910 if($order && $order->has_status('on-hold')){ 911 912 //check stripe vendor folder is exist 913 if (!class_exists('Stripe\Stripe')) { 914 include(EH_STRIPE_MAIN_PATH . "vendor/autoload.php"); 915 } 916 $objKlarna = new EH_Klarna_Gateway(); 917 918 //check the source stats is chargeable 919 $source_response = \Stripe\Source::retrieve($source_id); 920 if (isset($source_response->status) && !empty($source_response->status) && 'chargeable' == $source_response->status) { 921 922 $charge_response = \Stripe\Charge::create($objKlarna->eh_make_charge_params( $order, $source_response->id), array( 923 'idempotency_key' => $order->get_order_key() 924 )); 925 926 $objKlarna->eh_process_payment_response($charge_response, $order, true); 927 } 928 929 } 930 896 897 $order->update_status( 'failed', sprintf( __( 'Payment failed.', 'payment_gateway_stripe_and_woocommerce_integration' ) ) ); 898 } 899 } 900 } 901 } 902 931 903 } 932 904 933 934 break; 935 936 case 'checkout.session.expired': 937 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 938 $order_id = $decoded['data']['object']['metadata']['order_id']; 939 } 940 elseif(isset($decoded['data']['object']['success_url']) && !empty($decoded['data']['object']['success_url'])){ 941 $arr_parts = wp_parse_url($decoded['data']['object']['success_url']); 942 if(isset($arr_parts) && !empty($arr_parts) && isset($arr_parts['query']) && !empty($arr_parts['query'])){ 943 wp_parse_str($arr_parts['query'], $arr_params); 944 if(!empty($arr_params) && isset($arr_params['order_id']) && !empty($arr_params['order_id'])){ 945 $order_id = $arr_params['order_id']; 946 } 947 } 948 } 949 if(isset($order_id) && !empty($order_id)){ 950 $order = wc_get_order( $order_id ); 951 if($order){ 952 if('eh_stripe_checkout' == $order->get_payment_method() && 'processing' != $order->status && 'completed' != $order->status ){ 953 954 $session_id = (isset($decoded['data']['object']['id']) && !empty($session_id)) ? $decoded['data']['object']['id'] : ''; 955 if(empty($session_id)){ 956 return; 957 } 958 $session = \Stripe\Checkout\Session::retrieve($session_id); 959 960 $intent = get_post_meta( $order_id, '_eh_stripe_payment_intent', true); 961 if($intent == $session->payment_intent){ 962 $order->update_status( 'cancelled', __( 'Stripe checkout abandoned.', 'payment_gateway_stripe_and_woocommerce_integration' )); 963 905 break; 906 907 908 case 'source.chargeable': 909 910 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 911 $order_id = $decoded['data']['object']['metadata']['order_id']; 912 } 913 elseif(isset($decoded['data']['object']['redirect']['return_url']) && !empty($decoded['data']['object']['redirect']['return_url'])){ 914 $return_url = $decoded['data']['object']['redirect']['return_url']; 915 $arr_parts = wp_parse_url($return_url); 916 if(isset($arr_parts) && !empty($arr_parts) && isset($arr_parts['query']) && !empty($arr_parts['query'])){ 917 wp_parse_str($arr_parts['query'], $arr_params); 918 if(!empty($arr_params) && isset($arr_params['order_id']) && !empty($arr_params['order_id'])){ 919 $order_id = $arr_params['order_id']; 964 920 } 965 921 } 966 922 } 967 } 968 969 break; 970 default: 971 // code... 972 break; 973 } 923 if(isset($order_id) && !empty($order_id)){ 924 $source_id = sanitize_text_field($decoded['data']['object']['id']); 925 926 $order = wc_get_order( $order_id ); 927 if($order && $order->has_status('on-hold')){ 928 929 //check stripe vendor folder is exist 930 if (!class_exists('Stripe\Stripe')) { 931 include(EH_STRIPE_MAIN_PATH . "vendor/autoload.php"); 932 } 933 $objKlarna = new EH_Klarna_Gateway(); 934 935 //check the source stats is chargeable 936 $source_response = \Stripe\Source::retrieve($source_id); 937 if (isset($source_response->status) && !empty($source_response->status) && 'chargeable' == $source_response->status) { 938 939 $charge_response = \Stripe\Charge::create($objKlarna->eh_make_charge_params( $order, $source_response->id), array( 940 'idempotency_key' => $order->get_order_key() 941 )); 942 943 $objKlarna->eh_process_payment_response($charge_response, $order, true); 944 } 945 946 } 947 948 } 949 950 951 break; 952 953 case 'checkout.session.expired': 954 if (isset($decoded['data']['object']['metadata']['order_id']) && !empty($decoded['data']['object']['metadata']['order_id'])) { 955 $order_id = $decoded['data']['object']['metadata']['order_id']; 956 } 957 elseif(isset($decoded['data']['object']['success_url']) && !empty($decoded['data']['object']['success_url'])){ 958 $arr_parts = wp_parse_url($decoded['data']['object']['success_url']); 959 if(isset($arr_parts) && !empty($arr_parts) && isset($arr_parts['query']) && !empty($arr_parts['query'])){ 960 wp_parse_str($arr_parts['query'], $arr_params); 961 if(!empty($arr_params) && isset($arr_params['order_id']) && !empty($arr_params['order_id'])){ 962 $order_id = $arr_params['order_id']; 963 } 964 } 965 } 966 if(isset($order_id) && !empty($order_id)){ 967 $order = wc_get_order( $order_id ); 968 if($order){ 969 if('eh_stripe_checkout' === $order->get_payment_method() && 'processing' != $order->status && 'completed' != $order->status ){ 970 971 $session_id = (isset($decoded['data']['object']['id']) && !empty($session_id)) ? $decoded['data']['object']['id'] : ''; 972 if(empty($session_id)){ 973 return; 974 } 975 $session = \Stripe\Checkout\Session::retrieve($session_id); 976 977 $intent = get_post_meta( $order_id, '_eh_stripe_payment_intent', true); 978 if($intent == $session->payment_intent){ 979 $order->update_status( 'cancelled', __( 'Stripe checkout abandoned.', 'payment_gateway_stripe_and_woocommerce_integration' )); 980 981 } 982 } 983 } 984 } 985 986 break; 987 default: 988 // code... 989 break; 990 } 991 } 992 974 993 } 975 994 976 } 995 } catch(\UnexpectedValueException $e) { 996 // Invalid payload 997 http_response_code(400); 998 exit(); 999 } catch(\SignatureVerificationException $e) { 1000 // Invalid signature 1001 http_response_code(400); 1002 exit(); 1003 } 1004 catch(\Stripe\Exception\SignatureVerificationException $e) { 1005 // Invalid signature 1006 http_response_code(400); 1007 exit(); 1008 } 1009 catch(Exception $e){ 1010 http_response_code(400); 1011 exit(); 1012 } 1013 977 1014 978 1015 die; -
payment-gateway-stripe-and-woocommerce-integration/trunk/payment-gateway-stripe-and-woocommerce-integration.php
r2945311 r2954934 6 6 * Author: WebToffee 7 7 * Author URI: https://www.webtoffee.com/product/woocommerce-stripe-payment-gateway/ 8 * Version: 3. 7.98 * Version: 3.8.0 9 9 * WC requires at least: 3.0 10 10 * WC tested up to: 7.9.0 … … 26 26 } 27 27 if (!defined('EH_STRIPE_VERSION')) { 28 define('EH_STRIPE_VERSION', '3. 7.9');28 define('EH_STRIPE_VERSION', '3.8.0'); 29 29 } 30 30 if (!defined('EH_STRIPE_MAIN_FILE')) { … … 268 268 269 269 //add action to capture stripe payment in order meta box 270 add_action('woocommerce_order_actions', 'add_order_meta_box_actions', 2, 1);270 add_action('woocommerce_order_actions', 'add_order_meta_box_actions', 2, 2); 271 271 272 272 function add_order_meta_box_actions($actions, $order=false) { -
payment-gateway-stripe-and-woocommerce-integration/trunk/readme.txt
r2945311 r2954934 6 6 Tested up to: 6.2 7 7 Requires PHP: 5.6 8 Stable tag: 3. 7.98 Stable tag: 3.8.0 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 306 306 == Changelog == 307 307 308 = 3.8.0 2023-08-17 = 309 *[Fix] - Fixed a vulnerability issue 310 *[Add] - Added webhook secret to verify webhook events 311 308 312 = 3.7.9 2023-07-31 = 309 313 … … 717 721 == Upgrade Notice == 718 722 719 = 3.7.9 = 720 721 *[Fix] - Fixed non-ASCII character issue in image URLs send to Stripe checkout 722 *[Tweak] - Updated webhook description in the General settings page and notification about webhooks in all delayed payment method screens 723 *[Tweak] - Added correct spacing to billing name before sending to Stripe 724 *[Tweak] - Removed ‘off session’ parameter from Stripe checkout API 725 *[Compatibility] - HPOS compatibility 723 = 3.8.0 = 724 *[Fix] - Fixed a vulnerability issue 725 *[Add] - Added webhook secret to verify webhook events
Note: See TracChangeset
for help on using the changeset viewer.