Skip to content

Commit a7f86bf

Browse files
committed
add payment method Trustly and Good4Fun
1 parent c23b08d commit a7f86bf

File tree

8 files changed

+659
-1
lines changed

8 files changed

+659
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
class Pay_Payment_Block_Form_Good4fun extends Pay_Payment_Block_Form_Abstract {
4+
5+
protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Good4fun::OPTION_ID;
6+
protected $paymentMethodName = 'Good4Fun';
7+
8+
protected $methodCode = 'pay_payment_good4fun';
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
class Pay_Payment_Block_Form_Trustly extends Pay_Payment_Block_Form_Abstract {
4+
5+
protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Trustly::OPTION_ID;
6+
protected $paymentMethodName = 'Trustly';
7+
8+
protected $methodCode = 'pay_payment_trustly';
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
class Pay_Payment_Model_Paymentmethod_Good4fun extends Pay_Payment_Model_Paymentmethod {
3+
const OPTION_ID = 2628;
4+
protected $_paymentOptionId = 2628;
5+
protected $_code = 'pay_payment_good4fun';
6+
protected $_formBlockType = 'pay_payment/form_good4fun';
7+
}
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
class Pay_Payment_Model_Paymentmethod_Trustly extends Pay_Payment_Model_Paymentmethod {
3+
const OPTION_ID = 2718;
4+
protected $_paymentOptionId = 2718;
5+
protected $_code = 'pay_payment_trustly';
6+
protected $_formBlockType = 'pay_payment/form_trustly';
7+
}
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
class Pay_Payment_Model_Source_Paymentmethod_Good4fun_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
3+
protected $_option_id = Pay_Payment_Model_Paymentmethod_Good4fun::OPTION_ID;
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
class Pay_Payment_Model_Source_Paymentmethod_Trustly_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
3+
protected $_option_id = Pay_Payment_Model_Paymentmethod_Trustly::OPTION_ID;
4+
}

app/code/community/Pay/Payment/etc/config.xml

+25-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<config>
33
<modules>
44
<Pay_Payment>
5-
<version>3.13.10</version>
5+
<version>3.13.11</version>
66
</Pay_Payment>
77
</modules>
88
<global>
@@ -811,6 +811,30 @@
811811
<send_mail>success</send_mail>
812812
<limit_shipping>0</limit_shipping>
813813
</pay_payment_vvvgiftcard>
814+
<pay_payment_good4fun>
815+
<active>0</active>
816+
<invoice_email>1</invoice_email>
817+
<model>pay_payment/Paymentmethod_Good4fun</model>
818+
<title>Good4Fun</title>
819+
<payment_action>authorize</payment_action>
820+
<order_status>pending_payment</order_status>
821+
<order_status_success>processing</order_status_success>
822+
<order_status_verify>pending_payment</order_status_verify>
823+
<send_mail>success</send_mail>
824+
<limit_shipping>0</limit_shipping>
825+
</pay_payment_good4fun>
826+
<pay_payment_trustly>
827+
<active>0</active>
828+
<invoice_email>1</invoice_email>
829+
<model>pay_payment/Paymentmethod_Trustly</model>
830+
<title>Trustly</title>
831+
<payment_action>authorize</payment_action>
832+
<order_status>pending_payment</order_status>
833+
<order_status_success>processing</order_status_success>
834+
<order_status_verify>pending_payment</order_status_verify>
835+
<send_mail>success</send_mail>
836+
<limit_shipping>0</limit_shipping>
837+
</pay_payment_trustly>
814838
<pay_payment_paylink>
815839
<active>1</active>
816840
<invoice_email>1</invoice_email>

app/code/community/Pay/Payment/etc/system.xml

+590
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)