Download the PHP package shopwhizzy/stripehostedcheckout without Composer

On this page you can find all versions of the php package shopwhizzy/stripehostedcheckout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package stripehostedcheckout

ShopWhizzy_StripeHostedCheckout

Version 1.0.0

Redirects Magento 2 checkout straight to Stripe's hosted Checkout page — address collection, shipping method selection, coupons, and payment all happen on Stripe's page instead of Magento's native checkout. A Magento order is created, invoiced, and marked processing only after Stripe confirms payment.

What it does

When enabled, every checkout entry point skips Magento's own checkout pages and redirects to a Stripe Checkout Session built from the current cart:

On Stripe's page the customer enters their shipping/billing address, picks a shipping method, and pays using whichever payment methods are enabled in your Stripe account. On successful payment, the module converts the quote into a real Magento order, invoices it, and redirects the customer to Magento's normal order-success page.

Order creation is triggered by a dedicated Stripe webhook (authoritative) and, as a UX convenience, by the browser's return from Stripe — whichever happens first wins; the other is a no-op.

The payment method used (e.g. "Visa •••• 4242", "Multibanco", "PayPal") is shown as its own column in Sales > Orders, and the order view's Payment Information panel includes the Payment Intent ID with a direct link to view it in the Stripe Dashboard.

Demo

Demo Product — click Buy Now to see the redirect straight into Stripe's hosted Checkout page. The same redirect happens from the cart page and mini-cart "Proceed to Checkout" buttons once enabled.

Requirements

Installation

Setup

Go to Stores > Configuration > ShopWhizzy > Stripe Hosted Checkout:

  1. Stripe Secret Key / Stripe Publishable Key — from your Stripe Dashboard. This module keeps its own copy of these keys rather than reusing stripe/module-payments's configuration, since that module's internals are not a public extension point.
  2. Generate Webhook — click this after pasting your Secret Key (works even before clicking "Save Config" — it reads the key straight out of the form). It creates a webhook endpoint in Stripe pointed at this module's handler, subscribed to checkout.session.completed, checkout.session.expired, checkout.session.async_payment_succeeded, and checkout.session.async_payment_failed, and fills in the Webhook Signing Secret field below with the result. Click "Save Config" afterward to persist it. Re-clicking replaces the previous endpoint rather than creating duplicates. This is a separate endpoint from stripe/module-payments's own /stripe/webhooks, so processing never interferes with that module's event handling.
  3. Enable Stripe Hosted Checkout Redirect — set to Yes to activate the redirect. This toggle is independent of stripe/module-payments's own "Payment Flow" setting — that setting only changes payment behavior within Magento's native checkout and has no effect on this module.

With the toggle off, the store behaves exactly as stock Magento — nothing is patched or overridden, only a plugin that no-ops.

If you'd rather create the webhook endpoint yourself (e.g. in the Stripe Dashboard), point it at:

subscribed to the same four checkout.session.* events listed above.

How shipping is handled

How coupons are handled

The customer applies their Magento coupon code on the cart page as usual — existing validation, usage limits, and reporting are untouched. The resulting discount amount is passed to Stripe as a one-off, single-use Stripe Coupon applied to the session. Stripe's own native promo-code entry box is not shown, to avoid running two separate coupon systems.

Delayed / asynchronous payment methods (Multibanco, MB WAY, OXXO, bank transfers...)

Some payment methods don't complete at checkout — the customer gets a voucher or reference and pays later (Multibanco can take hours or days). For these, Stripe marks the Checkout Session status as complete (checkout itself is done) while payment_status stays unpaid until the money actually arrives, which can happen long after the browser has left the site.

The module handles this by placing the order immediately in Magento's normal new / pending state (not invoiced) as soon as checkout completes, then invoicing it and moving it to processing only when checkout.session.async_payment_succeeded fires — or cancelling it if checkout.session.async_payment_failed fires instead (voucher expired / payment failed). Do not ship orders still in pending state — they haven't been paid yet. This logic mirrors stripe/module-payments's own return controller, which gates on session status rather than payment_status for exactly this reason.

Caveats / known limitations (v1.0.0)


All versions of stripehostedcheckout with dependencies

PHP Build Version
Package Version
Requires php Version ~8.3.0||~8.4.0
magento/framework Version *
magento/module-checkout Version *
magento/module-quote Version *
magento/module-sales Version *
magento/module-directory Version *
stripe/stripe-php Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shopwhizzy/stripehostedcheckout contains the following files

Loading the files please wait ...