Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shivella/ideal-bundle

Symfony3 iDEALBundle for online iDEAL Mollie Payments
https://github.com/shivella/ideal-bundle

bundle ideal mollie php symfony symfony-bundle

Last synced: 3 months ago
JSON representation

Symfony3 iDEALBundle for online iDEAL Mollie Payments

Awesome Lists containing this project

README

        

THIS BUNDLE IS DEPRECATED
=========================

Please consider using: https://github.com/ruudk/PaymentMollieBundle

Mollie iDeal bundle
===================

This Symfony3 bundle adds support for [iDEAL](https://www.mollie.com/ideal/) payments by Mollie.
It is using [Mollie-php-api](https://github.com/mollie/mollie-api-php/). A Mollie account is required.

For more information see [Mollie](https://www.mollie.com/)

[![Latest Stable Version](https://poser.pugx.org/shivella/ideal-bundle/v/stable)](https://packagist.org/packages/shivella/ideal-bundle) [![License](https://poser.pugx.org/shivella/ideal-bundle/license)](https://packagist.org/packages/shivella/ideal-bundle) [![Total Downloads](https://poser.pugx.org/shivella/ideal-bundle/downloads)](https://packagist.org/packages/shivella/ideal-bundle) [![Coverage Status](https://coveralls.io/repos/github/Shivella/ideal-bundle/badge.svg)](https://coveralls.io/github/Shivella/ideal-bundle) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Shivella/ideal-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Shivella/ideal-bundle/?branch=master)

Installation
------------
Installation is a quick 3 step process:

1. Download ideal-bundle using composer
2. Enable the Bundle in AppKernel.php
3. Configure your Mollie credentials

### Step 1: Download ideal-bundle using composer

Add UsoftIDealBundle by running the command:

``` bash
$ composer require shivella/ideal-bundle
```

### Step 2: Enable the Bundle in AppKernel.php

``` php
createForm(IdealType::class);
$form->handleRequest($request);

if ($form->isValid()) {

$mollie = $this->get('mollie');
$bank = new Bank($form->get('bank')->getData());
$amount = (float) 120.99;

return $mollie->execute($bank, $amount, 'route_to_confirm_action');
}

return $this->render('payment.html.twig', ['form' => $form->createView()]);
}

/**
* @Route("/order/confirm", name="route_to_confirm_action")
*
* @param Request $request
*/
public function confirmAction(Request $request)
{
if ($this->get('mollie')->confirm($request)) {
// handle order....
} else {
// Something went wrong...
}
}
```