Skip to content

Commit

Permalink
Merge pull request #40 from max-geraci/master
Browse files Browse the repository at this point in the history
Add payment methods Payconiq and Multibanco
  • Loading branch information
max-geraci authored Feb 18, 2020
2 parents 832875d + 1b13264 commit 18dd835
Show file tree
Hide file tree
Showing 8 changed files with 711 additions and 54 deletions.
9 changes: 9 additions & 0 deletions app/code/community/Pay/Payment/Block/Form/Multibanco.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

class Pay_Payment_Block_Form_Multibanco extends Pay_Payment_Block_Form_Abstract {

protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Multibanco::OPTION_ID;
protected $paymentMethodName = 'Multibanco';

protected $methodCode = 'pay_payment_multibanco';
}
9 changes: 9 additions & 0 deletions app/code/community/Pay/Payment/Block/Form/Payconiq.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

class Pay_Payment_Block_Form_Payconiq extends Pay_Payment_Block_Form_Abstract {

protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Payconiq::OPTION_ID;
protected $paymentMethodName = 'Payconiq';

protected $methodCode = 'pay_payment_payconiq';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
class Pay_Payment_Model_Paymentmethod_Multibanco extends Pay_Payment_Model_Paymentmethod {
const OPTION_ID = 2271;
protected $_paymentOptionId = 2271;
protected $_code = 'pay_payment_multibanco';
protected $_formBlockType = 'pay_payment/form_multibanco';
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
class Pay_Payment_Model_Paymentmethod_Payconiq extends Pay_Payment_Model_Paymentmethod {
const OPTION_ID = 2379;
protected $_paymentOptionId = 2379;
protected $_code = 'pay_payment_payconiq';
protected $_formBlockType = 'pay_payment/form_payconiq';
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
class Pay_Payment_Model_Source_Paymentmethod_Multibanco_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
protected $_option_id = Pay_Payment_Model_Paymentmethod_Multibanco::OPTION_ID;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
class Pay_Payment_Model_Source_Paymentmethod_Payconiq_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
protected $_option_id = Pay_Payment_Model_Paymentmethod_Payconiq::OPTION_ID;
}
26 changes: 25 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.13.7</version>
<version>3.13.8</version>
</Pay_Payment>
</modules>
<global>
Expand Down Expand Up @@ -463,6 +463,18 @@
<send_mail>success</send_mail>
<limit_shipping>0</limit_shipping>
</pay_payment_instore>
<pay_payment_payconiq>
<active>0</active>
<invoice_email>1</invoice_email>
<model>pay_payment/Paymentmethod_Payconiq</model>
<title>Payconiq</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>
<limit_shipping>0</limit_shipping>
</pay_payment_payconiq>
<pay_payment_paypal>
<active>0</active>
<invoice_email>1</invoice_email>
Expand All @@ -487,6 +499,18 @@
<send_mail>success</send_mail>
<limit_shipping>0</limit_shipping>
</pay_payment_mistercash>
<pay_payment_multibanco>
<active>0</active>
<invoice_email>1</invoice_email>
<model>pay_payment/Paymentmethod_Multibanco</model>
<title>Multibanco</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>
<limit_shipping>0</limit_shipping>
</pay_payment_multibanco>
<pay_payment_sofortbanking>
<active>0</active>
<invoice_email>1</invoice_email>
Expand Down
697 changes: 644 additions & 53 deletions app/code/community/Pay/Payment/etc/system.xml

Large diffs are not rendered by default.

0 comments on commit 18dd835

Please sign in to comment.