Skip to content

Commit 3b729ee

Browse files
authored
Merge pull request #24 from JoepRoebroek/master
Add Bancontact Mr Cash as supported gateway
2 parents 2c4c82b + 68727a4 commit 3b729ee

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The following gateways are provided by this package:
3535
* Buckaroo_Ideal
3636
* Buckaroo_PayPal
3737
* Buckaroo_SepaDirectDebit
38+
* Buckaroo_BancontactMrCash
3839

3940
For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)
4041
repository.

src/BancontactMrCashGateway.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Omnipay\Buckaroo;
4+
5+
/**
6+
* Buckaroo Bancontact Mr Cash Gateway
7+
*/
8+
class BancontactMrCashGateway extends CreditCardGateway
9+
{
10+
public function getName()
11+
{
12+
return 'Buckaroo Bancontact MrCash';
13+
}
14+
15+
public function purchase(array $parameters = array())
16+
{
17+
return $this->createRequest('\Omnipay\Buckaroo\Message\BancontactMrCashPurchaseRequest', $parameters);
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Omnipay\Buckaroo\Message;
4+
5+
/**
6+
* Buckaroo Bancontact Mr Cash Purchase Request
7+
*/
8+
class BancontactMrCashPurchaseRequest extends AbstractRequest
9+
{
10+
public function getData()
11+
{
12+
$data = parent::getData();
13+
$data['Brq_payment_method'] = 'bancontactmrcash';
14+
15+
return $data;
16+
}
17+
}

0 commit comments

Comments
 (0)