Skip to content

Commit

Permalink
Merge pull request #4 from paynl/feature/PLUG-1585
Browse files Browse the repository at this point in the history
PLUG-1585 - Add biller
  • Loading branch information
woutse authored Dec 13, 2022
2 parents 13ddaee + 508f0ea commit 754854b
Show file tree
Hide file tree
Showing 5 changed files with 332 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/code/community/Pay/Payment/Block/Form/Biller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

class Pay_Payment_Block_Form_Biller extends Pay_Payment_Block_Form_Abstract {

protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Biller::OPTION_ID;
protected $paymentMethodName = 'Biller';
protected $template = 'pay/payment/form/default.phtml';
protected $methodCode = 'pay_payment_biller';
}
8 changes: 8 additions & 0 deletions app/code/community/Pay/Payment/Model/Paymentmethod/Biller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
class Pay_Payment_Model_Paymentmethod_Biller extends Pay_Payment_Model_Paymentmethod {
const OPTION_ID = 2931;
protected $_paymentOptionId = 2931;
protected $_code = 'pay_payment_biller';
protected $_formBlockType = 'pay_payment/form_biller';
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
class Pay_Payment_Model_Source_Paymentmethod_Biller_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
protected $_option_id = Pay_Payment_Model_Paymentmethod_Biller::OPTION_ID;
}
16 changes: 15 additions & 1 deletion app/code/community/Pay/Payment/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Pay_Payment>
<version>3.15.1</version>
<version>3.16.0</version>
</Pay_Payment>
</modules>
<global>
Expand Down Expand Up @@ -798,6 +798,20 @@
<ask_data_business>0</ask_data_business>
<limit_shipping>0</limit_shipping>
</pay_payment_applepay>
<pay_payment_biller>
<active>0</active>
<invoice_email>1</invoice_email>
<model>pay_payment/Paymentmethod_Biller</model>
<title>Biller</title>
<payment_action>authorize</payment_action>
<order_status>pending_payment</order_status>
<order_status_success>processing</order_status_success>
<order_status_verify>pending_payment</order_status_verify>
<send_mail>success</send_mail>
<ask_data_personal>0</ask_data_personal>
<ask_data_business>0</ask_data_business>
<limit_shipping>0</limit_shipping>
</pay_payment_biller>
<pay_payment_focum>
<active>0</active>
<invoice_email>1</invoice_email>
Expand Down
Loading

0 comments on commit 754854b

Please sign in to comment.