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

Darvin Payment Bundle Laravel Package

darvinstudio/darvin-payment-bundle

View on GitHub
Deep Wiki
Context7

DarvinPaymentBundle

This Omnipay-based bundle provides basic payment logic for Symfony applications.

Features:

  • creating payment
  • approving payment before purchase
  • standard purchase and purchase with pre-authorise
  • refund or canceling payment
  • the sending notify emails of every changed payment state
  • logging every actions in log and Event entity
  • provides the interface for the adding receipt to payment

Payment states

To manage payment state used Symfony Workflow Component.

Scheme of payment state changes:

Scheme of payment state changes

Installation

    composer require darvinstudio/darvin-payment-bundle

How to create Payment

    /** @var $paymentFactory \Darvin\PaymentBundle\Payment\Factory\PaymentFactoryInterface */
    $payment = $paymentFactory->createPayment(
        new PaidOrder(
            (string)$order->getId(),
            get_class($order),
            (string)$order->getNumber()
        ),
        $order->getPrice(),
        new Client(
            (string)$user->getId(),
            get_class($user),
            $user->getEmail()
        ),
        'USD'
    );

How to get payment's link in twig

    {{ payment_purchase_urls(payment) }}

How to get all available payment's links for order

    {{ payment_purchase_widget(order) }}
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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai