Version Notes
Processing Credit Card with Mastercard Internet Gateway Service (MIGS).
So customer will not leave our shopping site.
All the transactions are listing out in backend order transactions.
Download this release
Release Info
Developer | Ti |
Extension | Ti_Migspayment |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
app/code/community/Ti/Migspayment/Helper/Data.php
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ti Migspayment Payment Module
|
4 |
+
*
|
5 |
+
* @category Ti
|
6 |
+
* @package Ti_Migspayment
|
7 |
+
* @copyright Copyright (c) 2012 Ti Technologies (http://www.titechnologies.in)
|
8 |
+
* @link http://www.titechnologies.in
|
9 |
+
*/
|
10 |
+
|
11 |
+
class Ti_Migspayment_Helper_Data extends Mage_Core_Helper_Abstract{
|
12 |
+
|
13 |
+
function getResponseDescription($responseCode) {
|
14 |
+
|
15 |
+
switch ($responseCode) {
|
16 |
+
case "0" : $result = "Transaction Successful"; break;
|
17 |
+
case "?" : $result = "Transaction status is unknown"; break;
|
18 |
+
case "1" : $result = "Unknown Error"; break;
|
19 |
+
case "2" : $result = "Bank Declined Transaction"; break;
|
20 |
+
case "3" : $result = "No Reply from Bank"; break;
|
21 |
+
case "4" : $result = "Expired Card"; break;
|
22 |
+
case "5" : $result = "Insufficient funds"; break;
|
23 |
+
case "6" : $result = "Error Communicating with Bank"; break;
|
24 |
+
case "7" : $result = "Payment Server System Error"; break;
|
25 |
+
case "8" : $result = "Transaction Type Not Supported"; break;
|
26 |
+
case "9" : $result = "Bank declined transaction (Do not contact Bank)"; break;
|
27 |
+
case "A" : $result = "Transaction Aborted"; break;
|
28 |
+
case "C" : $result = "Transaction Cancelled"; break;
|
29 |
+
case "D" : $result = "Deferred transaction has been received and is awaiting processing"; break;
|
30 |
+
case "F" : $result = "3D Secure Authentication failed"; break;
|
31 |
+
case "I" : $result = "Card Security Code verification failed"; break;
|
32 |
+
case "L" : $result = "Shopping Transaction Locked (Please try the transaction again later)"; break;
|
33 |
+
case "N" : $result = "Cardholder is not enrolled in Authentication scheme"; break;
|
34 |
+
case "P" : $result = "Transaction has been received by the Payment Adaptor and is being processed"; break;
|
35 |
+
case "R" : $result = "Transaction was not processed - Reached limit of retry attempts allowed"; break;
|
36 |
+
case "S" : $result = "Duplicate SessionID (OrderInfo)"; break;
|
37 |
+
case "T" : $result = "Address Verification Failed"; break;
|
38 |
+
case "U" : $result = "Card Security Code Failed"; break;
|
39 |
+
case "V" : $result = "Address Verification and Card Security Code Failed"; break;
|
40 |
+
default : $result = "Unable to be determined";
|
41 |
+
}
|
42 |
+
return $result;
|
43 |
+
}
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
// -----------------------------------------------------------------------------
|
48 |
+
|
49 |
+
// This subroutine takes a data String and returns a predefined value if empty
|
50 |
+
// If data Sting is null, returns string "No Value Returned", else returns input
|
51 |
+
|
52 |
+
// @param $in String containing the data String
|
53 |
+
|
54 |
+
// @return String containing the output String
|
55 |
+
|
56 |
+
function null2unknown($map, $key) {
|
57 |
+
if (array_key_exists($key, $map)) {
|
58 |
+
if (!is_null($map[$key])) {
|
59 |
+
return $map[$key];
|
60 |
+
}
|
61 |
+
}
|
62 |
+
return "No Value Returned";
|
63 |
+
}
|
64 |
+
}
|
app/code/community/Ti/Migspayment/Model/Virtualcredit.php
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ti Migspayment Payment Module
|
4 |
+
*
|
5 |
+
* @category Ti
|
6 |
+
* @package Ti_Migspayment
|
7 |
+
* @copyright Copyright (c) 2012 Ti Technologies (http://www.titechnologies.in)
|
8 |
+
* @link http://www.titechnologies.in
|
9 |
+
*/
|
10 |
+
|
11 |
+
class Ti_Migspayment_Model_Virtualcredit extends Mage_Payment_Model_Method_Cc
|
12 |
+
{
|
13 |
+
/**
|
14 |
+
* unique internal payment method identifier
|
15 |
+
*
|
16 |
+
* @var string [a-z0-9_]
|
17 |
+
*/
|
18 |
+
protected $_code = 'migspayment';
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Here are examples of flags that will determine functionality availability
|
22 |
+
* of this module to be used by frontend and backend.
|
23 |
+
*
|
24 |
+
* @see all flags and their defaults in Mage_Payment_Model_Method_Abstract
|
25 |
+
*
|
26 |
+
* It is possible to have a custom dynamic logic by overloading
|
27 |
+
* public function can* for each flag respectively
|
28 |
+
*/
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Is this payment method a gateway (online auth/charge) ?
|
32 |
+
*/
|
33 |
+
protected $_isGateway = true;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Can authorize online?
|
37 |
+
*/
|
38 |
+
protected $_canAuthorize = true;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Can capture funds online?
|
42 |
+
*/
|
43 |
+
protected $_canCapture = true;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Can capture partial amounts online?
|
47 |
+
*/
|
48 |
+
protected $_canCapturePartial = false;
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Can refund online?
|
52 |
+
*/
|
53 |
+
protected $_canRefund = false;
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Can void transactions online?
|
57 |
+
*/
|
58 |
+
protected $_canVoid = true;
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Can use this payment method in administration panel?
|
62 |
+
*/
|
63 |
+
protected $_canUseInternal = true;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Can show this payment method as an option on checkout payment page?
|
67 |
+
*/
|
68 |
+
protected $_canUseCheckout = true;
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Is this payment method suitable for multi-shipping checkout?
|
72 |
+
*/
|
73 |
+
protected $_canUseForMultishipping = true;
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Can save credit card information for future processing?
|
77 |
+
*/
|
78 |
+
protected $_canSaveCc = false;
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Here you will need to implement authorize, capture and void public methods
|
82 |
+
*
|
83 |
+
* @see examples of transaction specific public methods such as
|
84 |
+
* authorize, capture and void in Mage_Paygate_Model_Authorizenet
|
85 |
+
*/
|
86 |
+
public function authorize(Varien_Object $payment, $amount)
|
87 |
+
{
|
88 |
+
$orderId = $payment->getOrder()->getIncrementId();
|
89 |
+
try {
|
90 |
+
$expyear=substr($payment->getCcExpYear(),2,2);
|
91 |
+
$m=$payment->getCcExpMonth();
|
92 |
+
$expmonth= strlen($m) < 2 ? "0".$m : $m;
|
93 |
+
$expval=$expyear.$expmonth;
|
94 |
+
$amount=$amount*1000;
|
95 |
+
$paymentValues = array("vpc_CardExp" => $expval,
|
96 |
+
"vpc_CardNum" => $payment->getCcNumber(),
|
97 |
+
"vpc_Amount" => $amount,
|
98 |
+
"vpc_MerchTxnRef" => $orderId,
|
99 |
+
"vpc_OrderInfo" => "Order ID:".$orderId." Card Holder:".$payment->getCcOwner(),
|
100 |
+
"vpc_CardSecurityCode" => $payment->getCcCid(),
|
101 |
+
);
|
102 |
+
$paymentValues['vpc_Version'] = "1";
|
103 |
+
$paymentValues['vpc_Command'] = "pay";
|
104 |
+
//Define the url where I'm making the request...
|
105 |
+
$urlToPost = Mage::getStoreConfig('payment/migspayment/gatewayurl');
|
106 |
+
if(Mage::getStoreConfig('payment/migspayment/testmode')=='1'){
|
107 |
+
$paymentValues['vpc_AccessCode'] = Mage::getStoreConfig('payment/migspayment/testaccesscode');
|
108 |
+
$paymentValues['vpc_Merchant'] = Mage::getStoreConfig('payment/migspayment/testmerchantid');
|
109 |
+
} else {
|
110 |
+
$paymentValues['vpc_AccessCode'] = Mage::getStoreConfig('payment/migspayment/accesscode');
|
111 |
+
$paymentValues['vpc_Merchant'] = Mage::getStoreConfig('payment/migspayment/merchantid');
|
112 |
+
}
|
113 |
+
//Now Create the request which I will send via Post Method...
|
114 |
+
$postData = "";
|
115 |
+
foreach ($paymentValues as $key => $val) {
|
116 |
+
$postData .= "{$key}=" . urlencode($val) . "&";
|
117 |
+
}
|
118 |
+
|
119 |
+
//Let's create a curl request and send the values above to the bank...
|
120 |
+
$ch = curl_init();
|
121 |
+
curl_setopt($ch, CURLOPT_URL, $urlToPost);
|
122 |
+
curl_setopt($ch, CURLOPT_TIMEOUT, 180);
|
123 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
124 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
125 |
+
curl_setopt($ch, CURLOPT_POST, true);
|
126 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); //Put the created string here in use...
|
127 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
128 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
129 |
+
$data = curl_exec($ch); //This value is the string returned from the bank...
|
130 |
+
if (!$data) {
|
131 |
+
Mage::throwException(curl_error($ch));
|
132 |
+
}
|
133 |
+
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
134 |
+
if ($httpcode && substr($httpcode, 0, 2) != "20") { //Unsuccessful post request...
|
135 |
+
Mage::throwException("Returned HTTP CODE: " . $httpcode . " for this URL: " . $urlToPost);
|
136 |
+
}
|
137 |
+
curl_close($ch);
|
138 |
+
} catch (Exception $e) {
|
139 |
+
$payment->setStatus(self::STATUS_ERROR);
|
140 |
+
$payment->setAmount($amount);
|
141 |
+
$payment->setLastTransId($orderId);
|
142 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
143 |
+
Mage::throwException($e->getMessage());
|
144 |
+
}
|
145 |
+
$map = array();
|
146 |
+
$message='';
|
147 |
+
// process response if no errors
|
148 |
+
$pairArray = split("&", $data);
|
149 |
+
foreach ($pairArray as $pair) {
|
150 |
+
$param = split("=", $pair);
|
151 |
+
$map[urldecode($param[0])] = urldecode($param[1]);
|
152 |
+
}
|
153 |
+
$message = Mage::helper('migspayment')->null2unknown($map, "vpc_Message");
|
154 |
+
|
155 |
+
// Standard Receipt Data
|
156 |
+
# merchTxnRef not always returned in response if no receipt so get input
|
157 |
+
//TK//$merchTxnRef = $vpc_MerchTxnRef;
|
158 |
+
$merchTxnRef = $_POST["vpc_MerchTxnRef"];
|
159 |
+
|
160 |
+
|
161 |
+
$amount = Mage::helper('migspayment')->null2unknown($map, "vpc_Amount");
|
162 |
+
$locale = Mage::helper('migspayment')->null2unknown($map, "vpc_Locale");
|
163 |
+
$batchNo = Mage::helper('migspayment')->null2unknown($map, "vpc_BatchNo");
|
164 |
+
$command = Mage::helper('migspayment')->null2unknown($map, "vpc_Command");
|
165 |
+
$version = Mage::helper('migspayment')->null2unknown($map, "vpc_Version");
|
166 |
+
$cardType = Mage::helper('migspayment')->null2unknown($map, "vpc_Card");
|
167 |
+
$orderInfo = Mage::helper('migspayment')->null2unknown($map, "vpc_OrderInfo");
|
168 |
+
$receiptNo = Mage::helper('migspayment')->null2unknown($map, "vpc_ReceiptNo");
|
169 |
+
$merchantID = Mage::helper('migspayment')->null2unknown($map, "vpc_Merchant");
|
170 |
+
$authorizeID = Mage::helper('migspayment')->null2unknown($map, "vpc_AuthorizeId");
|
171 |
+
$transactionNo = Mage::helper('migspayment')->null2unknown($map, "vpc_TransactionNo");
|
172 |
+
$acqResponseCode = Mage::helper('migspayment')->null2unknown($map, "vpc_AcqResponseCode");
|
173 |
+
$txnResponseCode = Mage::helper('migspayment')->null2unknown($map, "vpc_TxnResponseCode");
|
174 |
+
|
175 |
+
if ($txnResponseCode=='0') {
|
176 |
+
|
177 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
178 |
+
$payment->setStatus(self::STATUS_APPROVED);
|
179 |
+
$payment->setAmount($amount);
|
180 |
+
$payment->setLastTransId($orderId);
|
181 |
+
|
182 |
+
$transaction = Mage::getModel('sales/order_payment_transaction');
|
183 |
+
$transaction->setTxnId($transactionNo);
|
184 |
+
$transaction->setOrderPaymentObject($payment)
|
185 |
+
->setTxnType(Mage_Sales_Model_Order_Payment_Transaction::TYPE_CAPTURE);
|
186 |
+
$transaction->save();
|
187 |
+
|
188 |
+
|
189 |
+
} else {
|
190 |
+
|
191 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
192 |
+
$payment->setStatus(self::STATUS_DECLINED);
|
193 |
+
$payment->setAmount($amount);
|
194 |
+
$payment->setLastTransId($orderId);
|
195 |
+
Mage::throwException(Mage::helper('migspayment')->getResponseDescription($txnResponseCode).' - '.$message);
|
196 |
+
|
197 |
+
}
|
198 |
+
return $this;
|
199 |
+
}
|
200 |
+
|
201 |
+
}
|
202 |
+
?>
|
app/code/community/Ti/Migspayment/etc/config.xml
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ti Migspayment Payment Module
|
5 |
+
*
|
6 |
+
* @category Ti
|
7 |
+
* @package Ti_Migspayment
|
8 |
+
* @copyright Copyright (c) 2012 Ti Technologies (http://www.titechnologies.in)
|
9 |
+
* @link http://www.titechnologies.in
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<modules>
|
14 |
+
<Ti_Migspayment>
|
15 |
+
<version>0.1.0</version>
|
16 |
+
</Ti_Migspayment>
|
17 |
+
</modules>
|
18 |
+
<global>
|
19 |
+
<helpers>
|
20 |
+
<migspayment>
|
21 |
+
<class>Ti_Migspayment_Helper</class>
|
22 |
+
</migspayment>
|
23 |
+
</helpers>
|
24 |
+
<blocks>
|
25 |
+
<migspayment>
|
26 |
+
<class>Ti_Migspayment_Block</class>
|
27 |
+
</migspayment>
|
28 |
+
</blocks>
|
29 |
+
<models>
|
30 |
+
<migspayment>
|
31 |
+
<class>Ti_Migspayment_Model</class>
|
32 |
+
</migspayment>
|
33 |
+
</models>
|
34 |
+
<resources>
|
35 |
+
<migspayment_setup>
|
36 |
+
<setup>
|
37 |
+
<module>Ti_Migspayment</module>
|
38 |
+
</setup>
|
39 |
+
<connection>
|
40 |
+
<use>core_setup</use>
|
41 |
+
</connection>
|
42 |
+
</migspayment_setup>
|
43 |
+
<migspayment_write>
|
44 |
+
<connection>
|
45 |
+
<use>core_write</use>
|
46 |
+
</connection>
|
47 |
+
</migspayment_write>
|
48 |
+
<migspayment_read>
|
49 |
+
<connection>
|
50 |
+
<use>core_read</use>
|
51 |
+
</connection>
|
52 |
+
</migspayment_read>
|
53 |
+
</resources>
|
54 |
+
</global>
|
55 |
+
<default>
|
56 |
+
<payment>
|
57 |
+
<migspayment>
|
58 |
+
<active>0</active>
|
59 |
+
<model>migspayment/virtualcredit</model>
|
60 |
+
<order_status>pending</order_status>
|
61 |
+
<title>Credit Card ( Mastercard Internet Gateway Service )</title>
|
62 |
+
<gatewayurl>https://migs.mastercard.com.au/vpcdps</gatewayurl>
|
63 |
+
<testmode>0</testmode>
|
64 |
+
<merchantid>TESTDAGOSI</merchantid>
|
65 |
+
<accesscode>3BE4B05F</accesscode>
|
66 |
+
<testmerchantid>TESTDAGOSI</testmerchantid>
|
67 |
+
<testaccesscode>3BE4B05F</testaccesscode>
|
68 |
+
<cctypes>AE,VI,MC,DI</cctypes>
|
69 |
+
<payment_action>authorize</payment_action>
|
70 |
+
<allowspecific>0</allowspecific>
|
71 |
+
</migspayment>
|
72 |
+
</payment>
|
73 |
+
</default>
|
74 |
+
</config>
|
app/code/community/Ti/Migspayment/etc/system.xml
ADDED
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ti Migspayment Payment Module
|
5 |
+
*
|
6 |
+
* @category Ti
|
7 |
+
* @package Ti_Migspayment
|
8 |
+
* @copyright Copyright (c) 2012 Ti Technologies (http://www.titechnologies.in)
|
9 |
+
* @link http://www.titechnologies.in
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<sections>
|
14 |
+
<payment>
|
15 |
+
<groups>
|
16 |
+
<migspayment translate="label" module="migspayment">
|
17 |
+
<label>Credit Card ( Mastercard Internet Gateway Service )</label>
|
18 |
+
<sort_order>670</sort_order>
|
19 |
+
<show_in_default>1</show_in_default>
|
20 |
+
<show_in_website>1</show_in_website>
|
21 |
+
<show_in_store>0</show_in_store>
|
22 |
+
<fields>
|
23 |
+
<active translate="label">
|
24 |
+
<label>Enabled</label>
|
25 |
+
<frontend_type>select</frontend_type>
|
26 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
27 |
+
<sort_order>1</sort_order>
|
28 |
+
<show_in_default>1</show_in_default>
|
29 |
+
<show_in_website>1</show_in_website>
|
30 |
+
<show_in_store>0</show_in_store>
|
31 |
+
</active>
|
32 |
+
<title translate="label">
|
33 |
+
<label>Title</label>
|
34 |
+
<frontend_type>text</frontend_type>
|
35 |
+
<sort_order>2</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>0</show_in_store>
|
39 |
+
</title>
|
40 |
+
<gatewayurl translate="label">
|
41 |
+
<label>Gateway URL</label>
|
42 |
+
<frontend_type>text</frontend_type>
|
43 |
+
<sort_order>3</sort_order>
|
44 |
+
<show_in_default>1</show_in_default>
|
45 |
+
<show_in_website>1</show_in_website>
|
46 |
+
<show_in_store>0</show_in_store>
|
47 |
+
</gatewayurl>
|
48 |
+
<merchantid translate="label">
|
49 |
+
<label>Merchant ID</label>
|
50 |
+
<frontend_type>text</frontend_type>
|
51 |
+
<sort_order>4</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>1</show_in_website>
|
54 |
+
<show_in_store>0</show_in_store>
|
55 |
+
</merchantid>
|
56 |
+
<accesscode translate="label">
|
57 |
+
<label>Access Code</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>5</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>0</show_in_store>
|
63 |
+
</accesscode>
|
64 |
+
<testmode translate="label">
|
65 |
+
<label>Test Mode</label>
|
66 |
+
<frontend_type>select</frontend_type>
|
67 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
68 |
+
<sort_order>6</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>1</show_in_website>
|
71 |
+
<show_in_store>0</show_in_store>
|
72 |
+
</testmode>
|
73 |
+
<testmerchantid translate="label">
|
74 |
+
<label>Test Merchant ID</label>
|
75 |
+
<frontend_type>text</frontend_type>
|
76 |
+
<sort_order>7</sort_order>
|
77 |
+
<show_in_default>1</show_in_default>
|
78 |
+
<show_in_website>1</show_in_website>
|
79 |
+
<show_in_store>0</show_in_store>
|
80 |
+
</testmerchantid>
|
81 |
+
<testaccesscode translate="label">
|
82 |
+
<label>Access Code</label>
|
83 |
+
<frontend_type>text</frontend_type>
|
84 |
+
<sort_order>8</sort_order>
|
85 |
+
<show_in_default>1</show_in_default>
|
86 |
+
<show_in_website>1</show_in_website>
|
87 |
+
<show_in_store>0</show_in_store>
|
88 |
+
</testaccesscode>
|
89 |
+
<useccv translate="label">
|
90 |
+
<label>Request Card Security Code</label>
|
91 |
+
<frontend_type>select</frontend_type>
|
92 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
93 |
+
<sort_order>9</sort_order>
|
94 |
+
<show_in_default>1</show_in_default>
|
95 |
+
<show_in_website>1</show_in_website>
|
96 |
+
<show_in_store>0</show_in_store>
|
97 |
+
</useccv>
|
98 |
+
<order_status translate="label">
|
99 |
+
<label>New order status</label>
|
100 |
+
<frontend_type>select</frontend_type>
|
101 |
+
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
102 |
+
<sort_order>10</sort_order>
|
103 |
+
<show_in_default>1</show_in_default>
|
104 |
+
<show_in_website>1</show_in_website>
|
105 |
+
<show_in_store>0</show_in_store>
|
106 |
+
</order_status>
|
107 |
+
<cctypes translate="label">
|
108 |
+
<label>Credit Card Types</label>
|
109 |
+
<frontend_type>multiselect</frontend_type>
|
110 |
+
<source_model>adminhtml/system_config_source_payment_cctype</source_model>
|
111 |
+
<sort_order>10</sort_order>
|
112 |
+
<show_in_default>1</show_in_default>
|
113 |
+
<show_in_website>1</show_in_website>
|
114 |
+
<show_in_store>0</show_in_store>
|
115 |
+
<can_be_empty>1</can_be_empty>
|
116 |
+
</cctypes>
|
117 |
+
<allowspecific translate="label">
|
118 |
+
<label>Payment from Applicable Countries</label>
|
119 |
+
<frontend_type>allowspecific</frontend_type>
|
120 |
+
<sort_order>11</sort_order>
|
121 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
122 |
+
<show_in_default>1</show_in_default>
|
123 |
+
<show_in_website>1</show_in_website>
|
124 |
+
<show_in_store>0</show_in_store>
|
125 |
+
</allowspecific>
|
126 |
+
<specificcountry translate="label">
|
127 |
+
<label>Payment from Specific Countries</label>
|
128 |
+
<frontend_type>multiselect</frontend_type>
|
129 |
+
<sort_order>12</sort_order>
|
130 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
131 |
+
<show_in_default>1</show_in_default>
|
132 |
+
<show_in_website>1</show_in_website>
|
133 |
+
<show_in_store>0</show_in_store>
|
134 |
+
<can_be_empty>1</can_be_empty>
|
135 |
+
</specificcountry>
|
136 |
+
</fields>
|
137 |
+
</migspayment>
|
138 |
+
</groups>
|
139 |
+
</payment>
|
140 |
+
</sections>
|
141 |
+
</config>
|
app/etc/modules/Ti_Migspayment.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ti Migspayment Payment Module
|
5 |
+
*
|
6 |
+
* @category Ti
|
7 |
+
* @package Ti_Migspayment
|
8 |
+
* @copyright Copyright (c) 2012 Ti Technologies (http://www.titechnologies.in)
|
9 |
+
* @link http://www.titechnologies.in
|
10 |
+
*/
|
11 |
+
-->
|
12 |
+
<config>
|
13 |
+
<modules>
|
14 |
+
<Ti_Migspayment>
|
15 |
+
<active>true</active>
|
16 |
+
<codePool>community</codePool>
|
17 |
+
<depends>
|
18 |
+
<Mage_Payment />
|
19 |
+
</depends>
|
20 |
+
</Ti_Migspayment>
|
21 |
+
</modules>
|
22 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Ti_Migspayment</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GNU General Public License (GPL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Processing Credit Card with Mastercard Internet Gateway Service (MIGS)</summary>
|
10 |
+
<description>Processing Credit Card with Mastercard Internet Gateway Service. 
|
11 |
+
So customer will not leave our shopping site. 
|
12 |
+
All the transactions are listing out in backend order transactions.</description>
|
13 |
+
<notes>Processing Credit Card with Mastercard Internet Gateway Service (MIGS). 
|
14 |
+
So customer will not leave our shopping site. 
|
15 |
+
All the transactions are listing out in backend order transactions.</notes>
|
16 |
+
<authors><author><name>Ti Technologies</name><user>titech</user><email>info@titechnologies.in</email></author></authors>
|
17 |
+
<date>2012-10-22</date>
|
18 |
+
<time>11:11:46</time>
|
19 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Ti_Migspayment.xml" hash="addf06d502b569a68b33d57ce24b5697"/></dir></target><target name="magecommunity"><dir name="Ti"><dir name="Migspayment"><dir name="Helper"><file name="Data.php" hash="b2ea8d528a2ebecfe48617fd356399ec"/></dir><dir name="Model"><file name="Virtualcredit.php" hash="9da995886bb46780e36e26cdd4ad07ae"/></dir><dir name="etc"><file name="config.xml" hash="5075bbace4ade34dccd8cd1f2c27ba0b"/><file name="system.xml" hash="9733316126c81041e92e2092e092fb53"/></dir></dir></dir></target></contents>
|
20 |
+
<compatible/>
|
21 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
22 |
+
</package>
|