Skip to content

Commit d0c7535

Browse files
authored
Merge pull request #49 from paynl/feature/PLUG-695
Add afterpay international
2 parents a7f86bf + 6214458 commit d0c7535

File tree

5 files changed

+344
-0
lines changed

5 files changed

+344
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
class Pay_Payment_Block_Form_Afterpayint extends Pay_Payment_Block_Form_Abstract {
4+
5+
protected $paymentMethodId = Pay_Payment_Model_Paymentmethod_Afterpayint::OPTION_ID;
6+
protected $paymentMethodName = 'Afterpay International';
7+
protected $methodCode = 'pay_payment_afterpayint';
8+
9+
protected $template = 'pay/payment/form/afterpay.phtml';
10+
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
class Pay_Payment_Model_Paymentmethod_Afterpayint extends Pay_Payment_Model_Paymentmethod {
3+
const OPTION_ID = 2561;
4+
protected $_paymentOptionId = 2561;
5+
protected $_code = 'pay_payment_afterpayint';
6+
protected $_formBlockType = 'pay_payment/form_afterpayint';
7+
}
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
class Pay_Payment_Model_Source_Paymentmethod_Afterpayint_Active extends Pay_Payment_Model_Source_Paymentmethod_Active{
3+
protected $_option_id = Pay_Payment_Model_Paymentmethod_Afterpayint::OPTION_ID;
4+
}

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

+12
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,18 @@
609609
<send_mail>success</send_mail>
610610
<limit_shipping>0</limit_shipping>
611611
</pay_payment_afterpayem>
612+
<pay_payment_afterpayint>
613+
<active>0</active>
614+
<invoice_email>1</invoice_email>
615+
<model>pay_payment/Paymentmethod_Afterpayint</model>
616+
<title>Afterpay International</title>
617+
<payment_action>authorize</payment_action>
618+
<order_status>pending_payment</order_status>
619+
<order_status_success>processing</order_status_success>
620+
<order_status_verify>pending_payment</order_status_verify>
621+
<send_mail>success</send_mail>
622+
<limit_shipping>0</limit_shipping>
623+
</pay_payment_afterpayint>
612624
<pay_payment_telefoon>
613625
<active>0</active>
614626
<invoice_email>1</invoice_email>

0 commit comments

Comments
 (0)