Download the PHP package se7enxweb/sevenx_payment_stripe without Composer

On this page you can find all versions of the php package se7enxweb/sevenx_payment_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 sevenx_payment_stripe

7x Payment Gateway : Stripe

A Stripe payment gateway extension for Exponential. Provides an alternative payment gateway using the modern Stripe Payment Element — a single, embedded UI that supports cards, Apple Pay, Google Pay, Link, and every Stripe-supported payment method with zero additional code.


At a glance

Extension name sevenx_payment_stripe
Version 1.0.0
License GNU General Public License v2.0 (or any later version)
Requires Exponential CMS 4.7+ · PHP 8.0+ · Composer · ezjscore extension
ezjscore Latest version — must be installed, activated, and working
Stripe PHP SDK stripe/stripe-php v14+ (installed via Composer)
Stripe.js v3 (loaded from https://js.stripe.com/v3/)
Tested on PHP 8.2, Exponential CMS 4.7

How it works

The extension integrates with the Exponential shop workflow event system. When a customer reaches the payment step, Exponential calls loadForm() on the gateway class, which renders the Stripe Payment Element. After Stripe confirms the payment in-page, the JS posts to ezjsc-stripe::verify which verifies the result server-side and marks the order as Paid (status 1000). The browser then navigates to a clean /shop/checkout URL where the workflow advances automatically.

Payment flow

Step-by-step

  1. loadForm() — Sevenx_Payment_StripeGateway::loadForm() checks whether the order is already at status 1000 (Paid). If so it returns STATUS_ACCEPTED immediately. If not, it renders stripe_form.tpl containing the Stripe Payment Element and returns STATUS_FETCH_TEMPLATE_REPEAT.
  2. POST ezjsc-stripe::confirm — stripe-checkout.js posts {"orderId": <int>} to this eZJSCore endpoint. ezjscServerFunctionsStripeJs::confirm() validates ownership, calculates order totals, optionally calls the Stripe Tax API, and creates a PaymentIntent. Returns {"error_text":"","content":{"clientSecret":"..."}} to the browser.
  3. stripe.confirmPayment() — Stripe.js collects the payment method, handles 3D Secure challenges in-page (redirect: "if_required"). Cards and most methods succeed without leaving the page. Methods that require a redirect use return_url: window.location.origin + "/shop/checkout" so the verify step runs on return.
  4. POST ezjsc-stripe::verify — On paymentIntent.status === 'succeeded' (or on redirect-back via checkStatus()), the JS posts {"paymentIntentId": "pi_..."}. ezjscServerFunctionsStripeJs::verify() retrieves the PaymentIntent from Stripe server-side (never trusting client data alone), confirms status === 'succeeded' and metadata.order_id matches, then calls $order->modifyStatus(1000) which records the status change atomically.
  5. Workflow completion — The JS calls window.location.replace("/shop/checkout") — a clean URL with no Stripe query parameters. Exponential calls loadForm() again; it detects status_id === 1000 and returns STATUS_ACCEPTED, advancing the workflow to the order confirmation page.

Quick start

See doc/INSTALL.md for complete requirements and installation steps.


Documentation

Document Contents
doc/INSTALL.md Requirements, installation, Composer setup, INI configuration
doc/FEATURES.md Full feature list — security, Stripe Tax, Payment Element
doc/FAQ.md Troubleshooting and common questions
doc/TODO.md Roadmap and planned improvements
doc/EZCURLGATEWAY.md eZCurlGateway PHP 8 fork — diff vs stock, rationale
doc/changelogs/ Version history

Extension structure


Configuration

INI settings — settings/override/stripe.ini.append.php

Set real keys in the site-level override (never in the extension's own settings/stripe.ini.append.php, which is committed to version control and contains only placeholders).

Find your keys at https://dashboard.stripe.com/apikeys.


Going live (test → production)

  1. Replace both SecretKey and PublishableKey in settings/override/stripe.ini.append.php with your sk_live_... and pk_live_... keys. Both must be from the same Stripe account.
  2. Confirm window.location.origin + "/shop/checkout" resolves correctly for your domain — this is the return_url used for redirect-required payment methods (iDEAL, 3DS fallback, etc.).
  3. If using Stripe Tax, verify that Tax is activated in the Stripe Dashboard for your account.
  4. Test end-to-end in the Stripe Dashboard with a live card before announcing production.

Requirements summary


License

Copyright (C) 2001–2026 7x. Released under the GNU General Public License v2.0 (or any later version) — see LICENSE.


All versions of sevenx_payment_stripe with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
stripe/stripe-php Version ^14.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 se7enxweb/sevenx_payment_stripe contains the following files

Loading the files please wait ...