Download the PHP package simplecms/payment without Composer
On this page you can find all versions of the php package simplecms/payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package payment
SimpleCMS Payment
English
A payment package for the SimpleCMS ecosystem with a unified payment adapter layer, callback verification, refund tracking, and lifecycle events.
Highlights
- Unified channel contract for payment adapters
- WeChat Pay and Alipay support
- Additional V1.5 channels: PayPal, Stripe, USDT-TRC20, USDT-ERC20, BTC, ETH
- Standardized callback normalization and webhook verification
- Idempotent lifecycle handling with terminal-state protection
- Refund state synchronization and event-driven status updates
- Configurable route prefix, currency, and channel-specific secrets
Requirements
- PHP >= 8.1
- SimpleCMS Framework >= 1.0
- Composer 2
Installation
If your Laravel or SimpleCMS application does not discover package providers automatically, register them manually:
Configuration
The package reads channel and route settings from config/cms_payment.php. Keep secrets in the environment and never commit them to source control.
Supported channels
Model requirement
Your order model should implement the HasPayment contract:
Create a payment
V2 operational flow
The operational V2 flow is integrated into the main payment facade so it is used as part of the same package runtime instead of as a separate standalone API.
Host app integration example
In a Laravel or SimpleCMS application, register the package provider and then use the main payment facade for both the original payment flows and the V2 operational flows from the same runtime:
The same runtime can be used for operational tasks like risk checks, settlement runs, and reconciliation at scheduled intervals.
Callback and verification
The callback service standardizes provider payloads and verifies signatures before changing payment state.
- Stripe: verifies the Stripe-Signature header against the webhook secret
- PayPal: validates transmission metadata and webhook identity
- Replay and terminal-state updates are blocked to prevent stale callback overwrites
Events
Notes
- Keep secrets in .env or your deployment secret manager.
- Do not commit certificate files, keys, or webhook secrets.
- Ensure your application exposes payment callback routes and handles provider webhook headers correctly.
- This package is designed for Laravel/SimpleCMS integration and uses an adapter-based architecture for provider expansion.
License
MIT
All versions of payment with dependencies
simplecms/framework Version ^1.0
w7corp/easywechat Version ^6.0
alipaysdk/easysdk Version ^2.0
stripe/stripe-php Version ^16.0
paypal/rest-api-sdk-php Version ^1.14