Skip to content

Commit 8b535b0

Browse files
authored
Merge pull request #199 from paynl/feature/PLUG-5231
PLUG-5231 - Add three payment methods
2 parents 5880424 + 34fbdb4 commit 8b535b0

7 files changed

Lines changed: 108 additions & 0 deletions

File tree

assets/logos/435.png

7.79 KB
Loading

assets/logos/438.png

6.49 KB
Loading

assets/logos/444.png

12.4 KB
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/**
4+
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
5+
* @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6+
* @phpcs:disable PSR1.Methods.CamelCapsMethodName
7+
* @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
8+
*/
9+
10+
class PPMFWC_Gateway_Bancomat extends PPMFWC_Gateway_Abstract
11+
{
12+
/**
13+
* @return string
14+
*/
15+
public static function getId()
16+
{
17+
return 'pay_gateway_bancomat';
18+
}
19+
20+
/**
21+
* @return string
22+
*/
23+
public static function getName()
24+
{
25+
return 'Bancomat';
26+
}
27+
28+
/**
29+
* @return integer
30+
*/
31+
public static function getOptionId()
32+
{
33+
return 4809;
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/**
4+
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
5+
* @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6+
* @phpcs:disable PSR1.Methods.CamelCapsMethodName
7+
* @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
8+
*/
9+
10+
class PPMFWC_Gateway_Floa extends PPMFWC_Gateway_Abstract
11+
{
12+
/**
13+
* @return string
14+
*/
15+
public static function getId()
16+
{
17+
return 'pay_gateway_floa';
18+
}
19+
20+
/**
21+
* @return string
22+
*/
23+
public static function getName()
24+
{
25+
return 'FLOA';
26+
}
27+
28+
/**
29+
* @return integer
30+
*/
31+
public static function getOptionId()
32+
{
33+
return 4815;
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/**
4+
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
5+
* @phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
6+
* @phpcs:disable PSR1.Methods.CamelCapsMethodName
7+
* @phpcs:disable Squiz.Commenting.FunctionComment.TypeHintMissing
8+
*/
9+
10+
class PPMFWC_Gateway_Pix extends PPMFWC_Gateway_Abstract
11+
{
12+
/**
13+
* @return string
14+
*/
15+
public static function getId()
16+
{
17+
return 'pay_gateway_pix';
18+
}
19+
20+
/**
21+
* @return string
22+
*/
23+
public static function getName()
24+
{
25+
return 'PIX';
26+
}
27+
28+
/**
29+
* @return integer
30+
*/
31+
public static function getOptionId()
32+
{
33+
return 4803;
34+
}
35+
}

includes/classes/PPMFWC/Gateways.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ private static function getAvailableWoocomStatus($default, $excludeStates = arra
8080
'PPMFWC_Gateway_Afterpay',
8181
'PPMFWC_Gateway_AfterpayInternational',
8282
'PPMFWC_Gateway_Babycadeaubon',
83+
'PPMFWC_Gateway_Bancomat',
8384
'PPMFWC_Gateway_BataviastadCadeaukaart',
8485
'PPMFWC_Gateway_Bbqcadeaukaart',
8586
'PPMFWC_Gateway_Beautyandmorecadeaukaart',
@@ -114,6 +115,7 @@ private static function getAvailableWoocomStatus($default, $excludeStates = arra
114115
'PPMFWC_Gateway_FashionChequeBeauty',
115116
'PPMFWC_Gateway_Fashiongiftcard',
116117
'PPMFWC_Gateway_FestivalCadeaukaart',
118+
'PPMFWC_Gateway_Floa',
117119
'PPMFWC_Gateway_Flyingblueplus',
118120
'PPMFWC_Gateway_Focum',
119121
'PPMFWC_Gateway_Gezondheidsbon',
@@ -153,6 +155,7 @@ private static function getAvailableWoocomStatus($default, $excludeStates = arra
153155
'PPMFWC_Gateway_Paypal',
154156
'PPMFWC_Gateway_Paysafecard',
155157
'PPMFWC_Gateway_Phone',
158+
'PPMFWC_Gateway_Pix',
156159
'PPMFWC_Gateway_Podiumcadeaukaart',
157160
'PPMFWC_Gateway_Postepay',
158161
'PPMFWC_Gateway_RotterdamCitycard',

0 commit comments

Comments
 (0)