2017 © Pedro Peláez
 

library payum-braintree

A Payum extension for Braintree gateway integration

image

nfq-eta/payum-braintree

A Payum extension for Braintree gateway integration

  • Thursday, February 1, 2018
  • by Tadcka
  • Repository
  • 5 Watchers
  • 2 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Payum_Braintree

A Payum extension for Braintree gateway integration, (*1)

Configuration

Register a gateway factory to the payum's builder and create a gateway:, (*2)

<?php

use Payum\Core\PayumBuilder;

$defaultConfig = [];

$payum = (new PayumBuilder)
    ->addGatewayFactory('braintree', new Payum\Braintree\BraintreeGatewayFactory($defaultConfig))

    ->addGateway('braintree', [
        'factory' => 'braintree',
        'sandbox' => true,
        'merchantId' => '123123',
        'publicKey' => '999999',
        'privateKey' => '777888',
    ])

    ->getPayum()
;

Or, if your are working on the bases of Symfony, you can define it in a service that way :, (*3)

    acme.braintree_gateway_factory:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: [Payum\Braintree\BraintreeGatewayFactory]
        tags:
            - { name: payum.gateway_factory_builder, factory: braintree }

and in config.yml, (*4)

payum:
    gateways:
        braintree:
            factory: braintree
            payum.http_client: '@payum.http_client'
            merchantId: 123123
            publicKey: 999999
            privateKey: 777888

Using the gateway:, (*5)

```php <?php, (*6)

use Payum\Core\Request\Capture;, (*7)

/** @var \Payum\Core\Payum $payum */ $paypal = $payum->getGateway('braintree');, (*8)

$model = new \ArrayObject([ // ... ]);, (*9)

$paypal->execute(new Capture($model));, (*10)

The Versions

01/02 2018

dev-master

9999999-dev

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

01/02 2018

v1.0.0

1.0.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

17/05 2017

v0.5.0

0.5.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

14/03 2017

v0.1.1

0.1.1.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

14/03 2017

v0.4.2

0.4.2.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

10/02 2017

v0.4.1

0.4.1.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

03/02 2017

v0.4.0

0.4.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

03/02 2017

v0.3.0

0.3.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

31/01 2017

v0.2.0

0.2.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum

31/01 2017

v0.1.0

0.1.0.0

A Payum extension for Braintree gateway integration

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Daws

payment braintree payum