2017 © Pedro Peláez
 

symfony-bundle darvin-payment-bundle

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

image

darvinstudio/darvin-payment-bundle

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

  • Monday, July 9, 2018
  • by darvinstudio
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DarvinPaymentBundle

This Omnipay-based bundle provides basic payment logic for Symfony applications., (*1)

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., (*2)

Scheme of payment state changes:, (*3)

Scheme of payment state changes, (*4)

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'
    );
    {{ payment_purchase_urls(payment) }}
    {{ payment_purchase_widget(order) }}

The Versions

09/07 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

content

09/07 2018

1.0.1

1.0.1.0

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

  Sources   Download

MIT

The Requires

 

content