Download the PHP package ameotoko/stripe-bundle without Composer

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

Simple Stripe bundle for Contao 4

The bundle sets up basic environment, if you want to start using Stripe in your Contao application.

API key parameters

Add your API keys to the bundle config, and they will also become available as container parameters:

Then use it in your own services if you need:

IMPORTANT: store your production API keys in environment variables, to avoid committing them to version control:

Endpoints

Endpoint Route Response (success) Response (error)
/_stripe/payment stripe_create_payment_intent {"clientSecret": string} HTTP 500 {"error": string}
/_stripe/checkout stripe_create_checkout_session {"url": string} HTTP 500 {"error": string}
/_stripe/webhook stripe_webhook HTTP 200 (empty) HTTP 400 (empty)

The bundle creates 2 endpoints in your application, which you can call from your Javascript to create payment intents or checkout sessions:

The bundle also sets up a webhook endpoint /_stripe/webhook, which you can configure in your Stripe account, e.g. https://example.com/_stripe/webhook.

Then, you can process any events, that Stripe sends to your webhook endpoint, by setting up an EventListener, that listens to events like 'stripe.' + Stripe event name. For example, if you want to process Stripe's checkout.session.completed:

Events


Contao is an Open Source PHP Content Management System for people who want a professional website that is easy to maintain. Visit the project website for more information.


All versions of stripe-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
contao/core-bundle Version ^4.12
stripe/stripe-php Version ^7.67
symfony/config Version ^5.4
symfony/dependency-injection Version ^5.4
symfony/http-kernel Version ^5.4
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 ameotoko/stripe-bundle contains the following files

Loading the files please wait ....