Version Notes
This is Stable Version
Download this release
Release Info
Developer | Faisal |
Extension | prismpay123456 |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
app/code/local/PrismPayTech/PrismPay/Model/PaymentMethod.php
ADDED
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Our test CC module adapter
|
5 |
+
*/
|
6 |
+
class PrismPayTech_PrismPay_Model_PaymentMethod extends Mage_Payment_Model_Method_Cc
|
7 |
+
{
|
8 |
+
/**
|
9 |
+
* unique internal payment method identifier
|
10 |
+
*
|
11 |
+
* @var string [a-z0-9_]
|
12 |
+
*/
|
13 |
+
protected $_code = 'prismpay';
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Here are examples of flags that will determine functionality availability
|
17 |
+
* of this module to be used by frontend and backend.
|
18 |
+
*
|
19 |
+
* @see all flags and their defaults in Mage_Payment_Model_Method_Abstract
|
20 |
+
*
|
21 |
+
* It is possible to have a custom dynamic logic by overloading
|
22 |
+
* public function can* for each flag respectively
|
23 |
+
*/
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Is this payment method a gateway (online auth/charge) ?
|
27 |
+
*/
|
28 |
+
protected $_isGateway = true;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Can authorize online?
|
32 |
+
*/
|
33 |
+
protected $_canAuthorize = true;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Can capture funds online?
|
37 |
+
*/
|
38 |
+
protected $_canCapture = true;
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Can capture partial amounts online?
|
42 |
+
*/
|
43 |
+
protected $_canCapturePartial = false;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Can refund online?
|
47 |
+
*/
|
48 |
+
protected $_canRefund = false;
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Can void transactions online?
|
52 |
+
*/
|
53 |
+
protected $_canVoid = true;
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Can use this payment method in administration panel?
|
57 |
+
*/
|
58 |
+
protected $_canUseInternal = true;
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Can show this payment method as an option on checkout payment page?
|
62 |
+
*/
|
63 |
+
protected $_canUseCheckout = true;
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Is this payment method suitable for multi-shipping checkout?
|
67 |
+
*/
|
68 |
+
protected $_canUseForMultishipping = true;
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Can save credit card information for future processing?
|
72 |
+
*/
|
73 |
+
protected $_canSaveCc = false;
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Here you will need to implement authorize, capture and void public methods
|
77 |
+
*
|
78 |
+
* @see examples of transaction specific public methods such as
|
79 |
+
* authorize, capture and void in Mage_Paygate_Model_Authorizenet
|
80 |
+
*/
|
81 |
+
|
82 |
+
|
83 |
+
public function authorize(Varien_Object $payment, $amount)
|
84 |
+
{
|
85 |
+
$order = $payment->getOrder();
|
86 |
+
try {
|
87 |
+
|
88 |
+
|
89 |
+
//config variables
|
90 |
+
|
91 |
+
$config_debug = Mage::getStoreConfig('payment/prismpay/debug', $order->getStoreId());
|
92 |
+
$config_test = Mage::getStoreConfig('payment/prismpay/test', $order->getStoreId());
|
93 |
+
|
94 |
+
$account_id="";
|
95 |
+
$sub_account_id="";
|
96 |
+
|
97 |
+
if($config_test==1)
|
98 |
+
{
|
99 |
+
$account_id="py7l4";
|
100 |
+
$sub_account_id="";
|
101 |
+
|
102 |
+
}else
|
103 |
+
{
|
104 |
+
$config_account_id = Mage::getStoreConfig('payment/prismpay/account_id', $order->getStoreId());
|
105 |
+
$config_sub_account_id = Mage::getStoreConfig('payment/prismpay/sub_account_id', $order->getStoreId());
|
106 |
+
|
107 |
+
$account_id=$config_account_id;
|
108 |
+
$sub_account_id=$config_sub_account_id;
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
$billingaddress = $order->getBillingAddress();
|
116 |
+
ob_start();
|
117 |
+
$regionModel = Mage::getModel('directory/region')->load($billingaddress->getData('region_id'));
|
118 |
+
$dob = Mage::getModel('customer/customer')->load($order->getCustomerId())->getDob();
|
119 |
+
$devMode = false;
|
120 |
+
$ipAddress = $_SERVER['REMOTE_ADDR'];
|
121 |
+
if($devMode){
|
122 |
+
$ipAddress = "192.168.1.1";
|
123 |
+
}
|
124 |
+
$dobStr = "";
|
125 |
+
if(!isset($dob)){
|
126 |
+
$dob = $order->getCustomerDob();
|
127 |
+
}
|
128 |
+
if(isset($dob)){
|
129 |
+
$dobStr = str_replace("00:00:00", "", $dob);
|
130 |
+
$dobStr = str_replace("-", "", $dobStr);
|
131 |
+
$dobStr = trim($dobStr);
|
132 |
+
}
|
133 |
+
|
134 |
+
$totals = number_format($amount, 2, '.', '');
|
135 |
+
$fields = array(
|
136 |
+
"service" => "2",
|
137 |
+
"acctid" => $account_id,
|
138 |
+
"subid" => $sub_account_id,
|
139 |
+
"email" => $billingaddress->getData('email'),
|
140 |
+
"phone" => $billingaddress->getData('telephone'),
|
141 |
+
'ipaddress' => $_SERVER['REMOTE_ADDR'],
|
142 |
+
'billaddr1' => $billingaddress->getData('street'),
|
143 |
+
'billcity' => $billingaddress->getData('city'),
|
144 |
+
'billstate' => $regionModel->getCode(),
|
145 |
+
'billzip' => $billingaddress->getData('postcode'),
|
146 |
+
'billcountry' => $billingaddress->getData('country_id'),
|
147 |
+
'custom1' => $order->getId(),
|
148 |
+
'ccname' => $billingaddress->getData('firstname'),
|
149 |
+
'ccnum' => $payment->getCcNumber(),
|
150 |
+
'expmon' => $payment->getCcExpMonth(),
|
151 |
+
'expyear' => $payment->getCcExpYear(),
|
152 |
+
'amount' => $totals,
|
153 |
+
'currencycode' => $order->getBaseCurrencyCode(),
|
154 |
+
);
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
$fields_string = "<?xml version=\"1.0\"?><interface_driver><trans_catalog><transaction name=\"creditcard\"><inputs>";
|
159 |
+
|
160 |
+
foreach($fields as $key=>$value) {
|
161 |
+
$fields_string .= '<'.$key.'>'.$value.'</'.$key.'>';
|
162 |
+
}
|
163 |
+
$fields_string .='</inputs></transaction></trans_catalog></interface_driver>';
|
164 |
+
|
165 |
+
if($config_debug==0)
|
166 |
+
{
|
167 |
+
|
168 |
+
$ch = curl_init();
|
169 |
+
curl_setopt($ch, CURLOPT_URL, 'https://trans.myprismpay.com/cgi-bin/ProcessXML.cgi');
|
170 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
171 |
+
curl_setopt($ch, CURLINFO_HEADER_OUT, false);
|
172 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/xml; charset=utf-8"));
|
173 |
+
//curl_setopt($ch, CURLOPT_USERPWD, 'myusername:mypassword');
|
174 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
175 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
|
176 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
177 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
178 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
|
179 |
+
|
180 |
+
$data = curl_exec($ch); //This value is the string returned from the bank...
|
181 |
+
|
182 |
+
if (!$data) {
|
183 |
+
throw new Exception(curl_error($ch));
|
184 |
+
}
|
185 |
+
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
186 |
+
if ($httpcode && substr($httpcode, 0, 2) != "20") { //Unsuccessful post request...
|
187 |
+
throw new Exception("Returned HTTP CODE: " . $httpcode . " for this URL: " . $urlToPost);
|
188 |
+
}
|
189 |
+
curl_close($ch);
|
190 |
+
}
|
191 |
+
|
192 |
+
|
193 |
+
} catch (Exception $e) {
|
194 |
+
$payment->setStatus(self::STATUS_ERROR);
|
195 |
+
$payment->setAmount($amount);
|
196 |
+
$payment->setLastTransId($orderId);
|
197 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
198 |
+
Mage::throwException($e->getMessage());
|
199 |
+
// Mage::throwException($fields_string);
|
200 |
+
|
201 |
+
if($config_debug==1)
|
202 |
+
{
|
203 |
+
|
204 |
+
Mage::throwException($fields_string);
|
205 |
+
Mage::throwException($account_id);
|
206 |
+
|
207 |
+
|
208 |
+
}
|
209 |
+
}
|
210 |
+
if($config_debug==0)
|
211 |
+
{
|
212 |
+
$xmlResponse = new SimpleXmlElement($data); //Simple way to parse xml, Magento might have an equivalent class
|
213 |
+
$outputs=$xmlResponse->trans_catalog->transaction->outputs;
|
214 |
+
|
215 |
+
}
|
216 |
+
|
217 |
+
|
218 |
+
$contents = ob_get_contents();
|
219 |
+
ob_end_clean();
|
220 |
+
error_log($contents);
|
221 |
+
$isPaymentAccepted = $outputs->status == "Approved";
|
222 |
+
if ($isPaymentAccepted) {
|
223 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
224 |
+
$payment->setStatus(self::STATUS_APPROVED);
|
225 |
+
$payment->setAmount($amount);
|
226 |
+
$payment->setLastTransId($orderId);
|
227 |
+
} else {
|
228 |
+
$payment->setStatus(self::STATUS_ERROR);
|
229 |
+
$payment->setAmount($amount);
|
230 |
+
$payment->setLastTransId($orderId);
|
231 |
+
$this->setStore($payment->getOrder()->getStoreId());
|
232 |
+
if($config_debug==1)
|
233 |
+
{
|
234 |
+
Mage::throwException("XMl=".$fields_string."\n\nAccount=".$account_id."\n\nSub Account=".$sub_account_id."\n\nTest Mode=".$config_test."\n\nDebuge Mode=".$config_debug);
|
235 |
+
}else
|
236 |
+
{
|
237 |
+
Mage::throwException("Payment Declined");
|
238 |
+
}
|
239 |
+
|
240 |
+
}
|
241 |
+
return $this;
|
242 |
+
|
243 |
+
|
244 |
+
}
|
245 |
+
|
246 |
+
|
247 |
+
}
|
248 |
+
|
249 |
+
?>
|
app/code/local/PrismPayTech/PrismPay/etc/.DS_Store
ADDED
Binary file
|
app/code/local/PrismPayTech/PrismPay/etc/config.xml
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<PrismPayTech_PrismPay>
|
5 |
+
<!-- declare module's version information for database updates -->
|
6 |
+
<version>0.1.0</version>
|
7 |
+
</PrismPayTech_PrismPay>
|
8 |
+
</modules>
|
9 |
+
|
10 |
+
<global>
|
11 |
+
<!-- IMPORTANT: if you use your own namespace (i.e. CompanyName) you also have to declare blocks group for new module. See topic: http://www.magentocommerce.com/boards/viewthread/22416/#t102732 -->
|
12 |
+
<blocks>
|
13 |
+
<prismpay>
|
14 |
+
<class>PrismPayTech_PrismPay_Block</class>
|
15 |
+
</prismpay>
|
16 |
+
</blocks>
|
17 |
+
|
18 |
+
<!-- declare model group for new module -->
|
19 |
+
<models>
|
20 |
+
<!-- model group alias to be used in Mage::getModel('newmodule/...') -->
|
21 |
+
<prismpay>
|
22 |
+
<!-- base class name for the model group -->
|
23 |
+
<class>PrismPayTech_PrismPay_Model</class>
|
24 |
+
</prismpay>
|
25 |
+
</models>
|
26 |
+
|
27 |
+
<!-- declare resource setup for new module -->
|
28 |
+
<resources>
|
29 |
+
<!-- resource identifier -->
|
30 |
+
<prismpay_setup>
|
31 |
+
<!-- specify that this resource is a setup resource and used for upgrades -->
|
32 |
+
<setup>
|
33 |
+
<!-- which module to look for install/upgrade files in -->
|
34 |
+
<module>PrismPayTech_PrismPay</module>
|
35 |
+
</setup>
|
36 |
+
<!-- specify database connection for this resource -->
|
37 |
+
<connection>
|
38 |
+
<!-- do not create new connection, use predefined core setup connection -->
|
39 |
+
<use>core_setup</use>
|
40 |
+
</connection>
|
41 |
+
</prismpay_setup>
|
42 |
+
<prismpay_write>
|
43 |
+
<connection>
|
44 |
+
<use>core_write</use>
|
45 |
+
</connection>
|
46 |
+
</prismpay_write>
|
47 |
+
<prismpay_read>
|
48 |
+
<connection>
|
49 |
+
<use>core_read</use>
|
50 |
+
</connection>
|
51 |
+
</prismpay_read>
|
52 |
+
</resources>
|
53 |
+
</global>
|
54 |
+
|
55 |
+
<!-- declare default configuration values for this module -->
|
56 |
+
<default>
|
57 |
+
<!-- 'payment' configuration section (tab) -->
|
58 |
+
<payment>
|
59 |
+
<!-- 'newmodule' configuration group (fieldset) -->
|
60 |
+
<prismpay>
|
61 |
+
<!-- by default this payment method is inactive -->
|
62 |
+
<active>0</active>
|
63 |
+
<!-- model to handle logic for this payment method -->
|
64 |
+
<model>prismpay/paymentMethod</model>
|
65 |
+
<!-- order status for new orders paid by this payment method -->
|
66 |
+
<order_status>pending</order_status>
|
67 |
+
<!-- default title for payment checkout page and order view page -->
|
68 |
+
<title>Credit Card (prismpay)</title>
|
69 |
+
|
70 |
+
<cctypes>AE,VI,MC,DI</cctypes>
|
71 |
+
<payment_action>authorize</payment_action>
|
72 |
+
<allowspecific>0</allowspecific>
|
73 |
+
</prismpay>
|
74 |
+
</payment>
|
75 |
+
</default>
|
76 |
+
</config>
|
app/code/local/PrismPayTech/PrismPay/etc/system.xml
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<!-- payment tab -->
|
5 |
+
<payment>
|
6 |
+
<groups>
|
7 |
+
<!-- newmodule fieldset -->
|
8 |
+
<prismpay translate="label" module="paygate">
|
9 |
+
<!-- will have title 'New Module' -->
|
10 |
+
<label>PrismPay</label>
|
11 |
+
<!-- position between other payment methods -->
|
12 |
+
<sort_order>670</sort_order>
|
13 |
+
<!-- do not show this configuration options in store scope -->
|
14 |
+
<show_in_default>1</show_in_default>
|
15 |
+
<show_in_website>1</show_in_website>
|
16 |
+
<show_in_store>0</show_in_store>
|
17 |
+
<fields>
|
18 |
+
<!-- is this payment method active for the website? -->
|
19 |
+
<active translate="label">
|
20 |
+
<!-- label for the field -->
|
21 |
+
<label>Enabled</label>
|
22 |
+
<!-- input type for configuration value -->
|
23 |
+
<frontend_type>select</frontend_type>
|
24 |
+
<!-- model to take the option values from -->
|
25 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
26 |
+
<!-- field position -->
|
27 |
+
<sort_order>1</sort_order>
|
28 |
+
<!-- do not show this field in store scope -->
|
29 |
+
<show_in_default>1</show_in_default>
|
30 |
+
<show_in_website>1</show_in_website>
|
31 |
+
<show_in_store>0</show_in_store>
|
32 |
+
</active>
|
33 |
+
<order_status translate="label">
|
34 |
+
<label>New order status</label>
|
35 |
+
<frontend_type>select</frontend_type>
|
36 |
+
<source_model>adminhtml/system_config_source_order_status_processing</source_model>
|
37 |
+
<sort_order>5</sort_order>
|
38 |
+
<show_in_default>1</show_in_default>
|
39 |
+
<show_in_website>1</show_in_website>
|
40 |
+
<show_in_store>0</show_in_store>
|
41 |
+
</order_status>
|
42 |
+
<title translate="label">
|
43 |
+
<label>Title</label>
|
44 |
+
<frontend_type>text</frontend_type>
|
45 |
+
<sort_order>2</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>0</show_in_store>
|
49 |
+
</title>
|
50 |
+
<account_id translate="label">
|
51 |
+
<label>Account ID</label>
|
52 |
+
<frontend_type>text</frontend_type>
|
53 |
+
<sort_order>3</sort_order>
|
54 |
+
<show_in_default>1</show_in_default>
|
55 |
+
<show_in_website>1</show_in_website>
|
56 |
+
<show_in_store>0</show_in_store>
|
57 |
+
</account_id>
|
58 |
+
<sub_account_id translate="label">
|
59 |
+
<label>Sub Account ID</label>
|
60 |
+
<frontend_type>text</frontend_type>
|
61 |
+
<sort_order>4</sort_order>
|
62 |
+
<show_in_default>1</show_in_default>
|
63 |
+
<show_in_website>1</show_in_website>
|
64 |
+
<show_in_store>0</show_in_store>
|
65 |
+
</sub_account_id>
|
66 |
+
|
67 |
+
|
68 |
+
<test translate="label">
|
69 |
+
<label>Test Mode</label>
|
70 |
+
<frontend_type>select</frontend_type>
|
71 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
72 |
+
<sort_order>80</sort_order>
|
73 |
+
<show_in_default>1</show_in_default>
|
74 |
+
<show_in_website>1</show_in_website>
|
75 |
+
<show_in_store>0</show_in_store>
|
76 |
+
</test>
|
77 |
+
<!--<cgi_url translate="label">
|
78 |
+
<label>Gateway URL</label>
|
79 |
+
<frontend_type>text</frontend_type>
|
80 |
+
<sort_order>90</sort_order>
|
81 |
+
<show_in_default>1</show_in_default>
|
82 |
+
<show_in_website>1</show_in_website>
|
83 |
+
<show_in_store>0</show_in_store>
|
84 |
+
</cgi_url>
|
85 |
+
<currency translate="label">
|
86 |
+
<label>Accepted Currency</label>
|
87 |
+
<frontend_type>select</frontend_type>
|
88 |
+
<source_model>adminhtml/system_config_source_currency</source_model>
|
89 |
+
<sort_order>100</sort_order>
|
90 |
+
<show_in_default>1</show_in_default>
|
91 |
+
<show_in_website>1</show_in_website>
|
92 |
+
<show_in_store>0</show_in_store>
|
93 |
+
</currency>-->
|
94 |
+
<debug translate="label">
|
95 |
+
<label>Debug</label>
|
96 |
+
<frontend_type>select</frontend_type>
|
97 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
98 |
+
<sort_order>110</sort_order>
|
99 |
+
<show_in_default>1</show_in_default>
|
100 |
+
<show_in_website>1</show_in_website>
|
101 |
+
<show_in_store>0</show_in_store>
|
102 |
+
</debug>
|
103 |
+
<!--<email_customer translate="label">
|
104 |
+
<label>Email Customer</label>
|
105 |
+
<frontend_type>select</frontend_type>
|
106 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
107 |
+
<sort_order>120</sort_order>
|
108 |
+
<show_in_default>1</show_in_default>
|
109 |
+
<show_in_website>1</show_in_website>
|
110 |
+
<show_in_store>0</show_in_store>
|
111 |
+
</email_customer>
|
112 |
+
<merchant_email translate="label">
|
113 |
+
<label>Merchant's Email</label>
|
114 |
+
<frontend_type>text</frontend_type>
|
115 |
+
<validate>validate-email</validate>
|
116 |
+
<sort_order>130</sort_order>
|
117 |
+
<show_in_default>1</show_in_default>
|
118 |
+
<show_in_website>1</show_in_website>
|
119 |
+
<show_in_store>0</show_in_store>
|
120 |
+
</merchant_email>-->
|
121 |
+
<cctypes translate="label">
|
122 |
+
<label>Credit Card Types</label>
|
123 |
+
<frontend_type>multiselect</frontend_type>
|
124 |
+
<source_model>paygate/authorizenet_source_cctype</source_model>
|
125 |
+
<sort_order>140</sort_order>
|
126 |
+
<show_in_default>1</show_in_default>
|
127 |
+
<show_in_website>1</show_in_website>
|
128 |
+
<show_in_store>0</show_in_store>
|
129 |
+
</cctypes>
|
130 |
+
<!--<useccv translate="label">
|
131 |
+
<label>Credit Card Verification</label>
|
132 |
+
<frontend_type>select</frontend_type>
|
133 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
134 |
+
<sort_order>150</sort_order>
|
135 |
+
<show_in_default>1</show_in_default>
|
136 |
+
<show_in_website>1</show_in_website>
|
137 |
+
<show_in_store>0</show_in_store>
|
138 |
+
</useccv>-->
|
139 |
+
<allowspecific translate="label">
|
140 |
+
<label>Payment from Applicable Countries</label>
|
141 |
+
<frontend_type>allowspecific</frontend_type>
|
142 |
+
<sort_order>160</sort_order>
|
143 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
144 |
+
<show_in_default>1</show_in_default>
|
145 |
+
<show_in_website>1</show_in_website>
|
146 |
+
<show_in_store>0</show_in_store>
|
147 |
+
</allowspecific>
|
148 |
+
<specificcountry translate="label">
|
149 |
+
<label>Payment from Specific Countries</label>
|
150 |
+
<frontend_type>multiselect</frontend_type>
|
151 |
+
<sort_order>170</sort_order>
|
152 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
153 |
+
<show_in_default>1</show_in_default>
|
154 |
+
<show_in_website>1</show_in_website>
|
155 |
+
<show_in_store>0</show_in_store>
|
156 |
+
</specificcountry>
|
157 |
+
<min_order_total translate="label">
|
158 |
+
<label>Minimum Order Total</label>
|
159 |
+
<frontend_type>text</frontend_type>
|
160 |
+
<sort_order>180</sort_order>
|
161 |
+
<show_in_default>1</show_in_default>
|
162 |
+
<show_in_website>1</show_in_website>
|
163 |
+
<show_in_store>0</show_in_store>
|
164 |
+
</min_order_total>
|
165 |
+
<max_order_total translate="label">
|
166 |
+
<label>Maximum Order Total</label>
|
167 |
+
<frontend_type>text</frontend_type>
|
168 |
+
<sort_order>190</sort_order>
|
169 |
+
<show_in_default>1</show_in_default>
|
170 |
+
<show_in_website>1</show_in_website>
|
171 |
+
<show_in_store>0</show_in_store>
|
172 |
+
</max_order_total>
|
173 |
+
<sort_order translate="label">
|
174 |
+
<label>Sort Order</label>
|
175 |
+
<frontend_type>text</frontend_type>
|
176 |
+
<sort_order>200</sort_order>
|
177 |
+
<show_in_default>1</show_in_default>
|
178 |
+
<show_in_website>1</show_in_website>
|
179 |
+
<show_in_store>0</show_in_store>
|
180 |
+
<frontend_class>validate-number</frontend_class>
|
181 |
+
</sort_order>
|
182 |
+
|
183 |
+
</fields>
|
184 |
+
</prismpay>
|
185 |
+
</groups>
|
186 |
+
</payment>
|
187 |
+
</sections>
|
188 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>prismpay123456</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>GNU General Public License (GPL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>PrismPay provides a global internet-overlay network focused on providing secure, reliable, real-time transaction management.</summary>
|
10 |
+
<description>PrismPay provides a global internet-overlay network focused on providing secure, reliable, real-time transaction management.</description>
|
11 |
+
<notes>This is Stable Version</notes>
|
12 |
+
<authors><author><name>Faisal</name><user>shamsimagento</user><email>faisalsharifshamsi@gmail.com</email></author><author><name>Arslan</name><user>mazkhi</user><email>maz.khi@hotmail.com</email></author></authors>
|
13 |
+
<date>2014-06-10</date>
|
14 |
+
<time>13:32:33</time>
|
15 |
+
<contents><target name="magelocal"><dir name="PrismPayTech"><dir name="PrismPay"><dir name="Model"><file name="PaymentMethod.php" hash="6a377e260cd2dbb9c4a22976d1edfeea"/></dir><dir name="etc"><file name="config.xml" hash="9e4bee02b71a5e3deb6358c081474c2c"/><file name="system.xml" hash="4d1ee8b39ed4fde96ac2769cfb959e16"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></dir></target><target name="mageetc"><dir name="."><file name="PrismPayTech_PrismPay" hash=""/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.0.2</min><max>5.4.0</max></php></required></dependencies>
|
18 |
+
</package>
|