Weave 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

Symfony bundle for payment gateway abstraction with native CentralBill support via a pluggable interface. Configure gateways through YAML and environment variables, then integrate payments quickly.

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings