Download the PHP package korozcolt/payments-symfony without Composer
On this page you can find all versions of the php package korozcolt/payments-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download korozcolt/payments-symfony
More information about korozcolt/payments-symfony
Files in korozcolt/payments-symfony
Package payments-symfony
Short Description Symfony bundle for korozcolt/payments-core: Wompi, MercadoPago and ePayco.
License MIT
Informations about the package payments-symfony
korozcolt/payments-symfony
Symfony bundle for korozcolt/payments-core: Wompi, MercadoPago and ePayco.
Tested against Symfony 7.4 with a real kernel: bundle configuration, schema command, HTTP webhooks (400/401/200/405), PSR-14 events through event_dispatcher, console command.
Part of the korozcolt/payments ecosystem
The gateway logic (Wompi, MercadoPago, ePayco) is written once, in payments-core, and each framework gets a thin adapter. Install the adapter for your framework; Composer pulls the core in.
| Package | What it is |
|---|---|
| payments | Laravel adapter (also the monorepo) |
| payments-core | Framework-agnostic core: drivers, manager, webhooks |
| payments-codeigniter4 | CodeIgniter 4 adapter |
| payments-slim | Slim 4 / PSR-15 adapter |
| payments-symfony (this package) | Symfony bundle |
Why it is split this way, how the pieces relate and what is on the roadmap: ecosystem guide.
Install
Register the bundle (Flex does it for you; otherwise config/bundles.php):
Configure
MercadoPago: access_token, public_key, webhook_secret. ePayco: public_key, private_key, p_cust_id_cliente, p_key. Payout credentials go under payouts: (separate from drivers:).
Options: enabled, subscriptions.scheduled_providers, logging.enabled, statement_descriptor, and http_client (service id of a PSR-18 client that also implements the PSR-17 factories; default: Symfony HttpClient with a 30 s timeout).
Routes:
This exposes POST /payments/webhooks/{provider}. Point the provider's dashboard at it.
Create the tables
MySQL, PostgreSQL and SQLite are supported.
Charge
Events
The core dispatches through Symfony's event_dispatcher, so use normal listeners:
Subscriptions (Wompi)
Webhook answers are identical to the Laravel, CodeIgniter and Slim adapters: 400 unknown/unavailable provider, 401 bad signature, 200 processed (also 200 + success:false for known failures), 500 unexpected error.
All versions of payments-symfony with dependencies
ext-pdo Version *
korozcolt/payments-core Version ^1.0
nyholm/psr7 Version ^1.8
symfony/config Version ^6.4|^7.0
symfony/console Version ^6.4|^7.0
symfony/dependency-injection Version ^6.4|^7.0
symfony/framework-bundle Version ^6.4|^7.0
symfony/http-client Version ^6.4|^7.0
symfony/http-foundation Version ^6.4|^7.0
symfony/http-kernel Version ^6.4|^7.0
symfony/routing Version ^6.4|^7.0