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: 5 months ago
JSON representation
Symfony3 iDEALBundle for online iDEAL Mollie Payments
- Host: GitHub
- URL: https://github.com/shivella/ideal-bundle
- Owner: Shivella
- License: mit
- Created: 2014-12-04T21:27:46.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-03T09:09:45.000Z (over 7 years ago)
- Last Synced: 2025-01-31T04:32:10.557Z (about 1 year ago)
- Topics: bundle, ideal, mollie, php, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 63.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)
[](https://packagist.org/packages/shivella/ideal-bundle) [](https://packagist.org/packages/shivella/ideal-bundle) [](https://packagist.org/packages/shivella/ideal-bundle) [](https://coveralls.io/github/Shivella/ideal-bundle) [](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...
}
}
```