Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Payment Bundle Laravel Package

e2k/payment-bundle

View on GitHub
Deep Wiki
Context7

E2K Payment Bundle

License: MIT PHP Symfony

Symfony bundle for payment gateway abstraction. Natively supports CentralBill and extends its functionality by implementing an interface.

Installation

Via Composer (with Symfony Flex)

composer require e2k/payment-bundle

Sans Symfony Flex

composer require e2k/payment-bundle

Save the bundle manually:

// config/bundles.php
return [
    E2K\PaymentBundle\E2KPaymentBundle::class => ['all' => true],
];

Configuration

Create the configuration file:

# config/packages/e2k_payment.yaml
e2k_payment:
    default_gateway: '%env(PAYMENT_DEFAULT_GATEWAY)%'
    payment_route_prefix: '%env(PAYMENT_ROUTE_PREFIX)%'
    gateways:
        centralbill:
            enabled:            true
            application_id:     '%env(CENTRALBILL_APPLICATION_ID)%'
            application_secret: '%env(CENTRALBILL_APPLICATION_SECRET)%'
            web_pay_base_url:   '%env(CENTRALBILL_WEB_PAY_BASE_URL)%'
            callback_url:       '%env(CENTRALBILL_CALLBACK_URL)%'
            redirect_url:       '%env(CENTRALBILL_REDIRECT_URL)%'

Add the environment variables:

PAYMENT_DEFAULT_GATEWAY=centralbill
PAYMENT_ROUTE_PREFIX=/payments

CENTRALBILL_APPLICATION_ID=your-app-id
CENTRALBILL_APPLICATION_SECRET=your-secret
CENTRALBILL_WEB_PAY_BASE_URL=https://your-app.com/payment/webpay
CENTRALBILL_CALLBACK_URL=https://your-app.com/payment/callback/centralbill
CENTRALBILL_REDIRECT_URL=https://your-app.com/payment/return

Documentation

See docs/index.md.

Licence

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle