Download the PHP package omnitrade/stripe without Composer

On this page you can find all versions of the php package omnitrade/stripe. 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 stripe

omnitrade/stripe

Stripe for omnisense/omnitrade: cards and wallets through Checkout (Stripe's hosted page), what was paid, refunds, the webhook's events, and the catalogue kept in Stripe's Products - on omnipay/stripe, through the application's HTTP client.

Install and a first call

No account for this first call: Stripe's answer is recorded (Symfony's MockHttpClient answers in place of the API), so nothing leaves the process. With your own credentials, give the factory your HTTP client (or none: it makes its own).

A real payment needs a Stripe account: its secret key (below), a test key first.

Configuration

No framework needed: the package requires omnisense/omnitrade, symfony/http-client and Omnipay (omnipay/stripe, with what Omnipay itself requires). In a Symfony application, the same through the bundle's configuration:

purchase() opens a Checkout session and answers PENDING with the page's URL (returnUrl required; Stripe appends ?session={CHECKOUT_SESSION_ID} to it); fetch() reads the session (paid, open, expired); refund() pays back on the session's charge, with an idempotency key; notify() checks Stripe-Signature and reads the checkout.session.* events. No authorizations.

Catalogue

fetchProducts() lists Stripe's Products (starting_after; a query through the products search, name~"…"), fetchProduct() reads one by its prod_… id; each active Price is a variant (the default price first) with its offer. Metadata are the attributes, metadata.brand the brand; images the media. Stripe counts no stock: fetchInventory() is not supported. notify() reads product.* and price.* into a Notification carrying the product. See docs/catalogue.md.

Credentials: a secret key from the Stripe Dashboard (Developers → API keys). The webhook endpoint (checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.expired, checkout.session.async_payment_failed) is optional, and the application registers it itself: RegisterWebhook($url) answers its signing secret, to store sealed and pass as webhook_secret (docs/index.md). No console, no stripe listen.

Responsibility

This package is an independent, unofficial client: it is not affiliated with, endorsed by or sponsored by Stripe, Inc. It reaches their service on behalf of whoever runs it, and it does not redistribute their data beyond the short excerpts recorded as test fixtures. Its MIT licence covers this package's code only and grants no right to the service or to its data.

Whoever installs and runs this package is responsible for complying with Stripe's terms (Stripe Services Agreement), for obtaining whatever they require (an account, a key, a licence or subscription, an attribution or a citation, a rate limit to respect), and for any use made of what it returns. The authors publish it free of charge, make no commercial use of it, and accept no liability for how it is used (see LICENSE).

License: MIT since 2026-10-09; earlier versions remain published under LGPL-3.0-or-later.

Connect and subscriptions

Express accounts for those the platform pays (createAccount(), accountLink(), fetchAccount()), payments sent to them as destination charges (Payment::$destination, ::$applicationFee), subscriptions through Checkout (subscribe(), fetchSubscription(), cancelSubscription(), subscriptionPortal()), and the account.updated and customer.subscription.* events read by notify(). See docs/connect.md.

Saved methods (1.1, completed 1.2)

A card saved once on Checkout's setup page (SetupMethod), read back when the buyer returns (CompleteMethodSetup, 1.2), listed (FetchSavedMethods), removed (RemoveSavedMethod), and charged without a page by a Payment naming it (savedMethod): a PaymentIntent confirmed off-session, the bank's 3-D Secure check, when it asks, through its own page (a PENDING transaction's redirectUrl), payment_intent.succeeded saying when it is paid. The site keeps the customer's and the method's ids, never a card number. See docs/index.md.


All versions of stripe with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-bcmath Version *
nyholm/psr7 Version ^1.8
omnipay/common Version ^3.0
omnipay/stripe Version ^3.2
omnisense/contracts Version ^1.0
omnisense/omnitrade Version ^1.2
php-http/discovery Version ^1.14
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
symfony/http-client Version ^6.4|^7.0|^8.0
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 omnitrade/stripe contains the following files

Loading the files please wait ...