File tree Expand file tree Collapse file tree 8 files changed +69
-2
lines changed Expand file tree Collapse file tree 8 files changed +69
-2
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Payrexx Payment Gateway
4
+ *
5
+ * Copyright © 2024 PAYREXX AG (https://www.payrexx.com)
6
+ * See LICENSE.txt for license details.
7
+ *
8
+ * @copyright 2024 PAYREXX AG
9
+ * @author Payrexx <support@payrexx.com>
10
+ * @package magento2
11
+ * @subpackage payrexx_payment_gateway
12
+ */
13
+ namespace Payrexx \PaymentGateway \Model ;
14
+
15
+ /**
16
+ * PaymentMethod model for Payrexx
17
+ *
18
+ * @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
19
+ *
20
+ * @api
21
+ * @since 100.0.2
22
+ */
23
+ class PaymentMethodPayByBank extends PayrexxBase
24
+ {
25
+ /**
26
+ * Payment method code
27
+ *
28
+ * @var string
29
+ */
30
+ protected $ _code = 'payrexx_payment_pay_by_bank ' ;
31
+ }
Original file line number Diff line number Diff line change 9
9
"license" : [
10
10
" OSL-3.0"
11
11
],
12
- "version" : " 1.3.15 " ,
12
+ "version" : " 1.3.16 " ,
13
13
"autoload" : {
14
14
"files" : [
15
15
" registration.php"
Original file line number Diff line number Diff line change 665
665
<config_path >payment/payrexx_payment_bank_transfer/sort_order</config_path >
666
666
</field >
667
667
</group >
668
+ <group id =" payrexx_payment_pay_by_bank" translate =" label" type =" text" sortOrder =" 39" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
669
+ <label >Pay by Bank via Payrexx</label >
670
+ <field id =" active" translate =" label" type =" select" sortOrder =" 1" showInDefault =" 1" showInWebsite =" 1" showInStore =" 0" canRestore =" 1" >
671
+ <label >Enabled</label >
672
+ <source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
673
+ <config_path >payment/payrexx_payment_pay_by_bank/active</config_path >
674
+ </field >
675
+ <field id =" title" translate =" label" type =" text" sortOrder =" 2" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" canRestore =" 1" >
676
+ <label >Title</label >
677
+ <config_path >payment/payrexx_payment_pay_by_bank/title</config_path >
678
+ </field >
679
+ <field id =" sort_order" translate =" label" type =" text" sortOrder =" 3" showInDefault =" 3" showInWebsite =" 1" showInStore =" 0" >
680
+ <label >Sort Order</label >
681
+ <frontend_class >validate-number</frontend_class >
682
+ <config_path >payment/payrexx_payment_pay_by_bank/sort_order</config_path >
683
+ </field >
684
+ </group >
668
685
</group >
669
686
</group >
670
687
</section >
Original file line number Diff line number Diff line change 303
303
<model >Payrexx\PaymentGateway\Model\PaymentMethodBankTransfer</model >
304
304
<sort_order >38</sort_order >
305
305
</payrexx_payment_bank_transfer >
306
+ <payrexx_payment_pay_by_bank >
307
+ <active >0</active >
308
+ <title >Pay by Bank via Payrexx</title >
309
+ <payment_action >authorize</payment_action >
310
+ <order_status >pending_payment</order_status >
311
+ <model >Payrexx\PaymentGateway\Model\PaymentMethodPayByBank</model >
312
+ <sort_order >38</sort_order >
313
+ </payrexx_payment_pay_by_bank >
306
314
</payment >
307
315
</default >
308
316
</config >
Original file line number Diff line number Diff line change 14
14
*/
15
15
-->
16
16
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
17
- <module name =" Payrexx_PaymentGateway" setup_version =" 1.3.15 " >
17
+ <module name =" Payrexx_PaymentGateway" setup_version =" 1.3.16 " >
18
18
<sequence >
19
19
<module name =" Magento_Sales" />
20
20
<module name =" Magento_Payment" />
Original file line number Diff line number Diff line change 141
141
<item name =" payrexx_payment_bank_transfer" xsi : type =" array" >
142
142
<item name =" isBillingAddressRequired" xsi : type =" boolean" >true</item >
143
143
</item >
144
+ <item name =" payrexx_payment_pay_by_bank" xsi : type =" array" >
145
+ <item name =" isBillingAddressRequired" xsi : type =" boolean" >true</item >
146
+ </item >
144
147
</item >
145
148
</item >
146
149
</item >
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ define([
57
57
{ type : 'payrexx_payment_centi' , component : componentJs } ,
58
58
{ type : 'payrexx_payment_heidipay' , component : componentJs } ,
59
59
{ type : 'payrexx_payment_bank_transfer' , component : componentJs } ,
60
+ { type : 'payrexx_payment_pay_by_bank' , component : componentJs } ,
60
61
) ;
61
62
62
63
/** Add view logic here if needed */
You can’t perform that action at this time.
0 commit comments