2017 © Pedro Peláez
 

symfony-bundle mangopay-bundle

This Bundle include Mangopay php sdk as a service

image

troopers/mangopay-bundle

This Bundle include Mangopay php sdk as a service

  • Monday, November 27, 2017
  • by lenybernard
  • Repository
  • 10 Watchers
  • 22 Stars
  • 4,735 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 4 Open issues
  • 26 Versions
  • 3 % Grown

The README.md

Troopers, (*1)

Gitter License Version Packagist DL SensioLabsInsight, (*2)

Twitter Follow

MangopayBundle

Description

This bundle provides integration of the official SDK PHP for Mangopay api V2 into Symfony., (*3)

Configuration

troopers_mangopay:
    client_id: your_mangopay_client_id
    client_password: your_mangopay_client_password
    base_url: your_mangopay_base_url

How to use it ?

The official sdk provides a "MangoMapApi" class which is a shortcut to all the "tools" like "ApiPayIns", "ApiWallets", "ApiUsers"... You can access those "tools" through the service "troopers_mangopay.mango_api"., (*4)

    $payIn = new PayIn();
    $this->get('troopers_mangopay.mango_api')->PayIns->create($payIn);

Helpers

Additionnaly, there is some helpers that handle most of the mangopay actions. Feel free to fork and implement yours., (*5)

BankInformationHelper

It can register user BankInformations as it implements BankInformationInterface, (*6)

    $bankInformation = new BankInformation();
    $this->get('troopers_mangopay.bank_information_helper')->createBankAccount($bankInformation);

PaymentHelper

It can register a CardPreauthorisation and execute it, (*7)

    $cardRegistration = new CardRegistration();
    $this->get('troopers_mangopay.payment_helper')->createPreAuthorisation($cardRegistration);

    $cardPreAuthorisation = new CardPreAuthorisation();
    $this->get('troopers_mangopay.payment_helper')->executePreAuthorisation($cardPreAuthorisation, $user, $wallet);

PaymentDirectHelper

It can create a new direct payment, (*8)

    $transaction = new Transaction();
    $this->get('troopers_mangopay.payment_direct_helper')->createDirectTransaction($transaction);

UserHelper

It can create a new user in mangopay as the User object implements the UserInterface, (*9)

    $user = new User();
    $this->get('troopers_mangopay.user_helper')->createMangoUser($user);

WalletHelper

It can create a user wallet, (*10)

    $user = new User();
    $this->get('troopers_mangopay.wallet_helper')->createWalletForUser($user);

General workflow

This is the general workflow for the mangopay payment page:, (*11)

  1. Displaying the payment form to user

Step 1, (*12)

  1. Create mangopay user and the card registration through mangopay API

Step 2, (*13)

  1. Call the tokenisation server to validate the user credit card, use 3d secure if needed, update the CardR egistration with tokenized Card, create the PreAuthorisation then redirect the user to success page. Step 3

The Versions

27/11 2017

v1.x-dev

1.9999999.9999999.9999999-dev http://troopers.agency

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

27/11 2017
23/11 2017
27/09 2017

dev-master

9999999-dev http://troopers.agency

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

27/09 2017
26/09 2017
22/09 2017
07/08 2017
20/06 2017
03/05 2017
29/04 2017
15/11 2016

dev-readme-twitter-link

dev-readme-twitter-link http://troopers.agency

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

13/10 2016
13/10 2016
06/10 2016
06/10 2016
26/09 2016
26/09 2016
22/09 2016

2.0.2

2.0.2.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

20/09 2016

2.0.1

2.0.1.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

20/09 2016

1.2.2

1.2.2.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

12/09 2016

2.0.0

2.0.0.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

06/07 2016

1.2.1

1.2.1.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

04/03 2016

1.2.0

1.2.0.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

12/02 2016

1.0.1

1.0.1.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay

19/10 2015

1.0

1.0.0.0 http://appventus.com

This Bundle include Mangopay php sdk as a service

  Sources   Download

MIT

The Requires

 

mangopay