Skip to content

Commit 3087bf8

Browse files
authored
Merge pull request #2 from paynl/feature/PLUG-815
PLUG-815 - Magento1 Google Pay
2 parents c886cca + ee803af commit 3087bf8

File tree

5 files changed

+329
-0
lines changed

5 files changed

+329
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
class Pay_Payment_Block_Form_Googlepay extends Pay_Payment_Block_Form_Abstract {
4+
5+
protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Googlepay::OPTION_ID;
6+
protected $paymentMethodName = 'Google Pay';
7+
protected $methodCode = 'pay_payment_googlepay';
8+
protected $template = 'pay/payment/form/google.phtml';
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
class Pay_Payment_Model_Paymentmethod_Googlepay extends Pay_Payment_Model_Paymentmethod {
3+
const OPTION_ID = 2558;
4+
protected $_paymentOptionId = 2558;
5+
protected $_code = 'pay_payment_googlepay';
6+
protected $_formBlockType = 'pay_payment/form_googlepay';
7+
}
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
class Pay_Payment_Model_Source_Paymentmethod_Googlepay_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
3+
protected $_option_id = Pay_Payment_Model_Paymentmethod_Googlepay::OPTION_ID;
4+
}

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

+12
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,18 @@
835835
<send_mail>success</send_mail>
836836
<limit_shipping>0</limit_shipping>
837837
</pay_payment_good4fun>
838+
<pay_payment_googlepay>
839+
<active>0</active>
840+
<invoice_email>1</invoice_email>
841+
<model>pay_payment/Paymentmethod_Googlepay</model>
842+
<title>Google Pay</title>
843+
<payment_action>authorize</payment_action>
844+
<order_status>pending_payment</order_status>
845+
<order_status_success>processing</order_status_success>
846+
<order_status_verify>pending_payment</order_status_verify>
847+
<send_mail>success</send_mail>
848+
<limit_shipping>0</limit_shipping>
849+
</pay_payment_googlepay>
838850
<pay_payment_trustly>
839851
<active>0</active>
840852
<invoice_email>1</invoice_email>

0 commit comments

Comments
 (0)