Version Notes
Resolve Payment Flow Process
Now it will do Authorization-Capture Model
Download this release
Release Info
| Developer | faisal |
| Extension | prismpay123456 |
| Version | 1.1.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.4 to 1.1.5
- app/code/local/PrismPayTech/.DS_Store +0 -0
- app/code/local/PrismPayTech/PrismAch/etc/config.xml +15 -38
- app/code/local/PrismPayTech/PrismAch/etc/system.xml +12 -23
- app/code/local/PrismPayTech/PrismPay/.DS_Store +0 -0
- app/code/local/PrismPayTech/PrismPay/Block/Form.php +1 -1
- app/code/local/PrismPayTech/PrismPay/Model/PaymentMethod.php +2 -25
- app/code/local/PrismPayTech/PrismPay/etc/config.xml +4 -34
- app/code/local/PrismPayTech/PrismPay/etc/system.xml +99 -151
- app/code/local/PrismPayTech/PrismPay/sql/.DS_Store +0 -0
- app/code/local/PrismPayTech/PrismPay/sql/prismpaytech_prismpay_setup/.DS_Store +0 -0
- app/code/local/PrismPayTech/PrismPay/sql/prismpaytech_prismpay_setup/install-0.1.0.php +16 -0
- app/code/local/PrismPayTech/PrismProfile/.DS_Store +0 -0
- app/code/local/PrismPayTech/PrismProfile/Block/Form.php +1 -1
- app/code/local/PrismPayTech/PrismProfile/etc/config.xml +18 -38
- app/code/local/PrismPayTech/PrismProfile/etc/system.xml +11 -22
- package.xml +4 -4
app/code/local/PrismPayTech/.DS_Store
CHANGED
|
Binary file
|
app/code/local/PrismPayTech/PrismAch/etc/config.xml
CHANGED
|
@@ -1,82 +1,59 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
</PrismPayTech_PrismAch>
|
| 8 |
</modules>
|
| 9 |
-
|
| 10 |
<global>
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
</
|
| 16 |
-
</blocks>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<!-- declare model group for new module -->
|
| 20 |
<models>
|
| 21 |
-
<!-- model group alias to be used in Mage::getModel('newmodule/...') -->
|
| 22 |
<prismach>
|
| 23 |
-
<!-- base class name for the model group -->
|
| 24 |
<class>PrismPayTech_PrismAch_Model</class>
|
| 25 |
</prismach>
|
| 26 |
</models>
|
| 27 |
-
|
| 28 |
<prismach>
|
| 29 |
<class>PrismPayTech_PrismAch_Helper</class>
|
| 30 |
</prismach>
|
| 31 |
</helpers>
|
| 32 |
-
|
| 33 |
-
<!-- declare resource setup for new module -->
|
| 34 |
<resources>
|
| 35 |
-
<!-- resource identifier -->
|
| 36 |
<prismach_setup>
|
| 37 |
-
<!-- specify that this resource is a setup resource and used for upgrades -->
|
| 38 |
<setup>
|
| 39 |
-
<!-- which module to look for install/upgrade files in -->
|
| 40 |
<module>PrismPayTech_PrismAch</module>
|
| 41 |
</setup>
|
| 42 |
-
<!-- specify database connection for this resource -->
|
| 43 |
<connection>
|
| 44 |
-
<!-- do not create new connection, use predefined core setup connection -->
|
| 45 |
<use>core_setup</use>
|
| 46 |
</connection>
|
| 47 |
</prismach_setup>
|
| 48 |
<prismach_write>
|
| 49 |
<connection>
|
| 50 |
-
|
| 51 |
</connection>
|
| 52 |
</prismach_write>
|
| 53 |
<prismach_read>
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
</prismach_read>
|
| 58 |
</resources>
|
| 59 |
</global>
|
| 60 |
-
|
| 61 |
-
<!-- declare default configuration values for this module -->
|
| 62 |
<default>
|
| 63 |
-
<!-- 'payment' configuration section (tab) -->
|
| 64 |
<payment>
|
| 65 |
-
<!-- 'newmodule' configuration group (fieldset) -->
|
| 66 |
<prismach>
|
| 67 |
-
<!-- by default this payment method is inactive -->
|
| 68 |
<active>0</active>
|
| 69 |
-
<!-- model to handle logic for this payment method -->
|
| 70 |
<model>prismach/paymentMethod</model>
|
| 71 |
-
<!-- order status for new orders paid by this payment method -->
|
| 72 |
<order_status>pending</order_status>
|
| 73 |
-
<!-- default title for payment checkout page and order view page -->
|
| 74 |
<title>PrismPay ACH</title>
|
| 75 |
-
|
| 76 |
<cctypes>AE,VI,MC,DI</cctypes>
|
| 77 |
<payment_action>authorize_capture</payment_action>
|
| 78 |
<allowspecific>0</allowspecific>
|
| 79 |
</prismach>
|
| 80 |
-
|
| 81 |
</default>
|
| 82 |
</config>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
+
<PrismPayTech_PrismAch>
|
| 5 |
+
<version>0.1.0</version>
|
| 6 |
+
</PrismPayTech_PrismAch>
|
|
|
|
| 7 |
</modules>
|
| 8 |
+
|
| 9 |
<global>
|
| 10 |
+
<blocks>
|
| 11 |
+
<prismach>
|
| 12 |
+
<class>PrismPayTech_PrismAch_Block</class>
|
| 13 |
+
</prismach>
|
| 14 |
+
</blocks>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
<models>
|
|
|
|
| 16 |
<prismach>
|
|
|
|
| 17 |
<class>PrismPayTech_PrismAch_Model</class>
|
| 18 |
</prismach>
|
| 19 |
</models>
|
| 20 |
+
<helpers>
|
| 21 |
<prismach>
|
| 22 |
<class>PrismPayTech_PrismAch_Helper</class>
|
| 23 |
</prismach>
|
| 24 |
</helpers>
|
|
|
|
|
|
|
| 25 |
<resources>
|
|
|
|
| 26 |
<prismach_setup>
|
|
|
|
| 27 |
<setup>
|
|
|
|
| 28 |
<module>PrismPayTech_PrismAch</module>
|
| 29 |
</setup>
|
|
|
|
| 30 |
<connection>
|
|
|
|
| 31 |
<use>core_setup</use>
|
| 32 |
</connection>
|
| 33 |
</prismach_setup>
|
| 34 |
<prismach_write>
|
| 35 |
<connection>
|
| 36 |
+
<use>core_write</use>
|
| 37 |
</connection>
|
| 38 |
</prismach_write>
|
| 39 |
<prismach_read>
|
| 40 |
+
<connection>
|
| 41 |
+
<use>core_read</use>
|
| 42 |
+
</connection>
|
| 43 |
</prismach_read>
|
| 44 |
</resources>
|
| 45 |
</global>
|
|
|
|
|
|
|
| 46 |
<default>
|
|
|
|
| 47 |
<payment>
|
|
|
|
| 48 |
<prismach>
|
|
|
|
| 49 |
<active>0</active>
|
|
|
|
| 50 |
<model>prismach/paymentMethod</model>
|
|
|
|
| 51 |
<order_status>pending</order_status>
|
|
|
|
| 52 |
<title>PrismPay ACH</title>
|
|
|
|
| 53 |
<cctypes>AE,VI,MC,DI</cctypes>
|
| 54 |
<payment_action>authorize_capture</payment_action>
|
| 55 |
<allowspecific>0</allowspecific>
|
| 56 |
</prismach>
|
| 57 |
+
</payment>
|
| 58 |
</default>
|
| 59 |
</config>
|
app/code/local/PrismPayTech/PrismAch/etc/system.xml
CHANGED
|
@@ -1,31 +1,20 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
-
|
| 4 |
-
<!-- payment tab -->
|
| 5 |
<payment>
|
| 6 |
<groups>
|
| 7 |
-
<!-- newmodule fieldset -->
|
| 8 |
<prismach translate="label" module="prismach">
|
| 9 |
-
<!-- will have title 'New Module' -->
|
| 10 |
<label>PrismPayAch</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>
|
|
@@ -47,18 +36,18 @@
|
|
| 47 |
<show_in_website>1</show_in_website>
|
| 48 |
<show_in_store>0</show_in_store>
|
| 49 |
</title>
|
| 50 |
-
|
| 51 |
-
|
| 52 |
<sort_order translate="label">
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
|
| 63 |
</fields>
|
| 64 |
</prismach>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
+
<sections>
|
|
|
|
| 4 |
<payment>
|
| 5 |
<groups>
|
|
|
|
| 6 |
<prismach translate="label" module="prismach">
|
|
|
|
| 7 |
<label>PrismPayAch</label>
|
|
|
|
| 8 |
<sort_order>670</sort_order>
|
|
|
|
| 9 |
<show_in_default>1</show_in_default>
|
| 10 |
<show_in_website>1</show_in_website>
|
| 11 |
<show_in_store>0</show_in_store>
|
| 12 |
<fields>
|
|
|
|
| 13 |
<active translate="label">
|
|
|
|
| 14 |
<label>Enabled</label>
|
|
|
|
| 15 |
<frontend_type>select</frontend_type>
|
|
|
|
| 16 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
|
|
|
| 17 |
<sort_order>1</sort_order>
|
|
|
|
| 18 |
<show_in_default>1</show_in_default>
|
| 19 |
<show_in_website>1</show_in_website>
|
| 20 |
<show_in_store>0</show_in_store>
|
| 36 |
<show_in_website>1</show_in_website>
|
| 37 |
<show_in_store>0</show_in_store>
|
| 38 |
</title>
|
| 39 |
+
|
| 40 |
+
|
| 41 |
<sort_order translate="label">
|
| 42 |
+
<label>Sort Order</label>
|
| 43 |
+
<frontend_type>text</frontend_type>
|
| 44 |
+
<sort_order>200</sort_order>
|
| 45 |
+
<show_in_default>1</show_in_default>
|
| 46 |
+
<show_in_website>1</show_in_website>
|
| 47 |
+
<show_in_store>0</show_in_store>
|
| 48 |
+
<frontend_class>validate-number</frontend_class>
|
| 49 |
+
</sort_order>
|
| 50 |
+
|
| 51 |
|
| 52 |
</fields>
|
| 53 |
</prismach>
|
app/code/local/PrismPayTech/PrismPay/.DS_Store
CHANGED
|
Binary file
|
app/code/local/PrismPayTech/PrismPay/Block/Form.php
CHANGED
|
@@ -167,7 +167,7 @@ class PrismPayTech_PrismPay_Block_Form extends Mage_Payment_Block_Form
|
|
| 167 |
///get customer card profile
|
| 168 |
$connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 169 |
$select = $connectionRead->select()
|
| 170 |
-
->from('
|
| 171 |
->where('customer_id=?',$customer_id);
|
| 172 |
//->group('customer_id');
|
| 173 |
$row =$connectionRead->fetchRow($select); //return rows
|
| 167 |
///get customer card profile
|
| 168 |
$connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 169 |
$select = $connectionRead->select()
|
| 170 |
+
->from('prismpay_customer_profile', array('*'))
|
| 171 |
->where('customer_id=?',$customer_id);
|
| 172 |
//->group('customer_id');
|
| 173 |
$row =$connectionRead->fetchRow($select); //return rows
|
app/code/local/PrismPayTech/PrismPay/Model/PaymentMethod.php
CHANGED
|
@@ -9,19 +9,6 @@ class PrismPayTech_PrismPay_Model_PaymentMethod extends PrismPayTech_PrismPay_Mo
|
|
| 9 |
public function __construct() {
|
| 10 |
parent::__construct();
|
| 11 |
|
| 12 |
-
$createQuery="CREATE TABLE IF NOT EXISTS `customer_profile` (
|
| 13 |
-
`id` int(11) NOT NULL AUTO_INCREMENT,
|
| 14 |
-
`customer_id` varchar(50) NOT NULL,
|
| 15 |
-
`profile_id` varchar(50) NOT NULL,
|
| 16 |
-
`last_4_digit` varchar(20) NOT NULL,
|
| 17 |
-
PRIMARY KEY (`id`)
|
| 18 |
-
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
| 19 |
-
";
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
$read = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 23 |
-
$write = Mage::getSingleton('core/resource')->getConnection('core_write');
|
| 24 |
-
$write->query($createQuery);
|
| 25 |
}
|
| 26 |
|
| 27 |
/**
|
|
@@ -75,7 +62,7 @@ class PrismPayTech_PrismPay_Model_PaymentMethod extends PrismPayTech_PrismPay_Mo
|
|
| 75 |
'billzip' => $billingaddress->getData('postcode'),
|
| 76 |
'billcountry' => $billingaddress->getData('country_id'),
|
| 77 |
'custom1' => $order->getId(),
|
| 78 |
-
'ccname' => $billingaddress->getData('firstname'),
|
| 79 |
'ccnum' => $payment->getCcNumber(),
|
| 80 |
'expmon' => $payment->getCcExpMonth(),
|
| 81 |
'expyear' => $payment->getCcExpYear(),
|
|
@@ -154,22 +141,12 @@ class PrismPayTech_PrismPay_Model_PaymentMethod extends PrismPayTech_PrismPay_Mo
|
|
| 154 |
$connectionWrite = Mage::getSingleton('core/resource')->getConnection('core_write');
|
| 155 |
$connectionWrite->beginTransaction();
|
| 156 |
|
| 157 |
-
//create customer profile table if not created
|
| 158 |
-
$createQuery="CREATE TABLE IF NOT EXISTS 'customer_profile' (
|
| 159 |
-
'id' int(11) NOT NULL AUTO_INCREMENT,
|
| 160 |
-
'customer_id' varchar(50) NOT NULL,
|
| 161 |
-
'profile_id' varchar(50) NOT NULL,
|
| 162 |
-
'last_4_digit' varchar(20) NOT NULL,
|
| 163 |
-
PRIMARY KEY ('id')
|
| 164 |
-
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
|
| 165 |
-
//$results = $connectionWrite->fetchAll($createQuery);
|
| 166 |
-
|
| 167 |
|
| 168 |
$data = array();
|
| 169 |
$data['profile_id']= $outputs->userprofileid;
|
| 170 |
$data['last_4_digit']=$outputs->last4digits;
|
| 171 |
$data['customer_id']=$customer_id;
|
| 172 |
-
$connectionWrite->insert('
|
| 173 |
$connectionWrite->commit();
|
| 174 |
|
| 175 |
$transactionData['profile_id']= "".$outputs->userprofileid."";
|
| 9 |
public function __construct() {
|
| 10 |
parent::__construct();
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
}
|
| 13 |
|
| 14 |
/**
|
| 62 |
'billzip' => $billingaddress->getData('postcode'),
|
| 63 |
'billcountry' => $billingaddress->getData('country_id'),
|
| 64 |
'custom1' => $order->getId(),
|
| 65 |
+
'ccname' => $billingaddress->getData('firstname')." ".$billingaddress->getData('lastname'),
|
| 66 |
'ccnum' => $payment->getCcNumber(),
|
| 67 |
'expmon' => $payment->getCcExpMonth(),
|
| 68 |
'expyear' => $payment->getCcExpYear(),
|
| 141 |
$connectionWrite = Mage::getSingleton('core/resource')->getConnection('core_write');
|
| 142 |
$connectionWrite->beginTransaction();
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
$data = array();
|
| 146 |
$data['profile_id']= $outputs->userprofileid;
|
| 147 |
$data['last_4_digit']=$outputs->last4digits;
|
| 148 |
$data['customer_id']=$customer_id;
|
| 149 |
+
$connectionWrite->insert('prismpay_customer_profile', $data);
|
| 150 |
$connectionWrite->commit();
|
| 151 |
|
| 152 |
$transactionData['profile_id']= "".$outputs->userprofileid."";
|
app/code/local/PrismPayTech/PrismPay/etc/config.xml
CHANGED
|
@@ -2,71 +2,41 @@
|
|
| 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 |
-
|
| 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 |
-
</
|
| 42 |
-
|
| 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_capture</payment_action>
|
| 72 |
<allowspecific>0</allowspecific>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<PrismPayTech_PrismPay>
|
|
|
|
| 5 |
<version>0.1.0</version>
|
| 6 |
</PrismPayTech_PrismPay>
|
| 7 |
</modules>
|
| 8 |
|
| 9 |
<global>
|
|
|
|
| 10 |
<blocks>
|
| 11 |
<prismpay>
|
| 12 |
<class>PrismPayTech_PrismPay_Block</class>
|
| 13 |
</prismpay>
|
| 14 |
</blocks>
|
|
|
|
|
|
|
| 15 |
<models>
|
|
|
|
| 16 |
<prismpay>
|
|
|
|
| 17 |
<class>PrismPayTech_PrismPay_Model</class>
|
| 18 |
</prismpay>
|
| 19 |
</models>
|
|
|
|
|
|
|
| 20 |
<resources>
|
| 21 |
+
<prismpaytech_prismpay_setup>
|
|
|
|
|
|
|
| 22 |
<setup>
|
|
|
|
| 23 |
<module>PrismPayTech_PrismPay</module>
|
| 24 |
+
<!--<class>Mage_Core_Model_Resource_Setup</class>-->
|
| 25 |
</setup>
|
|
|
|
| 26 |
<connection>
|
|
|
|
| 27 |
<use>core_setup</use>
|
| 28 |
</connection>
|
| 29 |
+
</prismpaytech_prismpay_setup>
|
| 30 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</resources>
|
| 32 |
</global>
|
|
|
|
|
|
|
| 33 |
<default>
|
|
|
|
| 34 |
<payment>
|
|
|
|
| 35 |
<prismpay>
|
|
|
|
| 36 |
<active>0</active>
|
|
|
|
| 37 |
<model>prismpay/paymentMethod</model>
|
|
|
|
| 38 |
<order_status>pending</order_status>
|
|
|
|
| 39 |
<title>Credit Card (prismpay)</title>
|
|
|
|
| 40 |
<cctypes>AE,VI,MC,DI</cctypes>
|
| 41 |
<payment_action>authorize_capture</payment_action>
|
| 42 |
<allowspecific>0</allowspecific>
|
app/code/local/PrismPayTech/PrismPay/etc/system.xml
CHANGED
|
@@ -1,31 +1,20 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
-
|
| 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>
|
|
@@ -48,145 +37,104 @@
|
|
| 48 |
<show_in_store>0</show_in_store>
|
| 49 |
</title>
|
| 50 |
<account_id translate="label">
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
<frontend_type>allowspecific</frontend_type>
|
| 150 |
-
<sort_order>160</sort_order>
|
| 151 |
-
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
| 152 |
-
<show_in_default>1</show_in_default>
|
| 153 |
-
<show_in_website>1</show_in_website>
|
| 154 |
-
<show_in_store>0</show_in_store>
|
| 155 |
-
</allowspecific>
|
| 156 |
-
<specificcountry translate="label">
|
| 157 |
-
<label>Payment from Specific Countries</label>
|
| 158 |
-
<frontend_type>multiselect</frontend_type>
|
| 159 |
-
<sort_order>170</sort_order>
|
| 160 |
-
<source_model>adminhtml/system_config_source_country</source_model>
|
| 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 |
-
</specificcountry>
|
| 165 |
-
<min_order_total translate="label">
|
| 166 |
-
<label>Minimum Order Total</label>
|
| 167 |
-
<frontend_type>text</frontend_type>
|
| 168 |
-
<sort_order>180</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 |
-
</min_order_total>
|
| 173 |
-
<max_order_total translate="label">
|
| 174 |
-
<label>Maximum Order Total</label>
|
| 175 |
-
<frontend_type>text</frontend_type>
|
| 176 |
-
<sort_order>190</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 |
-
</max_order_total>
|
| 181 |
-
<sort_order translate="label">
|
| 182 |
-
<label>Sort Order</label>
|
| 183 |
-
<frontend_type>text</frontend_type>
|
| 184 |
-
<sort_order>200</sort_order>
|
| 185 |
-
<show_in_default>1</show_in_default>
|
| 186 |
-
<show_in_website>1</show_in_website>
|
| 187 |
-
<show_in_store>0</show_in_store>
|
| 188 |
-
<frontend_class>validate-number</frontend_class>
|
| 189 |
-
</sort_order>
|
| 190 |
|
| 191 |
</fields>
|
| 192 |
</prismpay>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
+
<sections>
|
|
|
|
| 4 |
<payment>
|
| 5 |
<groups>
|
|
|
|
| 6 |
<prismpay translate="label" module="paygate">
|
|
|
|
| 7 |
<label>PrismPay</label>
|
|
|
|
| 8 |
<sort_order>670</sort_order>
|
|
|
|
| 9 |
<show_in_default>1</show_in_default>
|
| 10 |
<show_in_website>1</show_in_website>
|
| 11 |
<show_in_store>0</show_in_store>
|
| 12 |
<fields>
|
|
|
|
| 13 |
<active translate="label">
|
|
|
|
| 14 |
<label>Enabled</label>
|
|
|
|
| 15 |
<frontend_type>select</frontend_type>
|
|
|
|
| 16 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
|
|
|
| 17 |
<sort_order>1</sort_order>
|
|
|
|
| 18 |
<show_in_default>1</show_in_default>
|
| 19 |
<show_in_website>1</show_in_website>
|
| 20 |
<show_in_store>0</show_in_store>
|
| 37 |
<show_in_store>0</show_in_store>
|
| 38 |
</title>
|
| 39 |
<account_id translate="label">
|
| 40 |
+
<label>Account ID</label>
|
| 41 |
+
<frontend_type>text</frontend_type>
|
| 42 |
+
<sort_order>3</sort_order>
|
| 43 |
+
<show_in_default>1</show_in_default>
|
| 44 |
+
<show_in_website>1</show_in_website>
|
| 45 |
+
<show_in_store>0</show_in_store>
|
| 46 |
+
</account_id>
|
| 47 |
+
<sub_account_id translate="label">
|
| 48 |
+
<label>Sub Account ID</label>
|
| 49 |
+
<frontend_type>text</frontend_type>
|
| 50 |
+
<sort_order>4</sort_order>
|
| 51 |
+
<show_in_default>1</show_in_default>
|
| 52 |
+
<show_in_website>1</show_in_website>
|
| 53 |
+
<show_in_store>0</show_in_store>
|
| 54 |
+
</sub_account_id>
|
| 55 |
+
<merchantpin translate="label">
|
| 56 |
+
<label>Merchant Pin</label>
|
| 57 |
+
<frontend_type>text</frontend_type>
|
| 58 |
+
<sort_order>5</sort_order>
|
| 59 |
+
<show_in_default>1</show_in_default>
|
| 60 |
+
<show_in_website>1</show_in_website>
|
| 61 |
+
<show_in_store>0</show_in_store>
|
| 62 |
+
</merchantpin>
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
<test translate="label">
|
| 66 |
+
<label>Test Mode</label>
|
| 67 |
+
<frontend_type>select</frontend_type>
|
| 68 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 69 |
+
<sort_order>80</sort_order>
|
| 70 |
+
<show_in_default>1</show_in_default>
|
| 71 |
+
<show_in_website>1</show_in_website>
|
| 72 |
+
<show_in_store>0</show_in_store>
|
| 73 |
+
</test>
|
| 74 |
+
|
| 75 |
+
<debug translate="label">
|
| 76 |
+
<label>Debug</label>
|
| 77 |
+
<frontend_type>select</frontend_type>
|
| 78 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 79 |
+
<sort_order>110</sort_order>
|
| 80 |
+
<show_in_default>1</show_in_default>
|
| 81 |
+
<show_in_website>1</show_in_website>
|
| 82 |
+
<show_in_store>0</show_in_store>
|
| 83 |
+
</debug>
|
| 84 |
+
|
| 85 |
+
<cctypes translate="label">
|
| 86 |
+
<label>Credit Card Types</label>
|
| 87 |
+
<frontend_type>multiselect</frontend_type>
|
| 88 |
+
<source_model>paygate/authorizenet_source_cctype</source_model>
|
| 89 |
+
<sort_order>140</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 |
+
</cctypes>
|
| 94 |
+
|
| 95 |
+
<allowspecific translate="label">
|
| 96 |
+
<label>Payment from Applicable Countries</label>
|
| 97 |
+
<frontend_type>allowspecific</frontend_type>
|
| 98 |
+
<sort_order>160</sort_order>
|
| 99 |
+
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
|
| 100 |
+
<show_in_default>1</show_in_default>
|
| 101 |
+
<show_in_website>1</show_in_website>
|
| 102 |
+
<show_in_store>0</show_in_store>
|
| 103 |
+
</allowspecific>
|
| 104 |
+
<specificcountry translate="label">
|
| 105 |
+
<label>Payment from Specific Countries</label>
|
| 106 |
+
<frontend_type>multiselect</frontend_type>
|
| 107 |
+
<sort_order>170</sort_order>
|
| 108 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
| 109 |
+
<show_in_default>1</show_in_default>
|
| 110 |
+
<show_in_website>1</show_in_website>
|
| 111 |
+
<show_in_store>0</show_in_store>
|
| 112 |
+
</specificcountry>
|
| 113 |
+
<min_order_total translate="label">
|
| 114 |
+
<label>Minimum Order Total</label>
|
| 115 |
+
<frontend_type>text</frontend_type>
|
| 116 |
+
<sort_order>180</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 |
+
</min_order_total>
|
| 121 |
+
<max_order_total translate="label">
|
| 122 |
+
<label>Maximum Order Total</label>
|
| 123 |
+
<frontend_type>text</frontend_type>
|
| 124 |
+
<sort_order>190</sort_order>
|
| 125 |
+
<show_in_default>1</show_in_default>
|
| 126 |
+
<show_in_website>1</show_in_website>
|
| 127 |
+
<show_in_store>0</show_in_store>
|
| 128 |
+
</max_order_total>
|
| 129 |
+
<sort_order translate="label">
|
| 130 |
+
<label>Sort Order</label>
|
| 131 |
+
<frontend_type>text</frontend_type>
|
| 132 |
+
<sort_order>200</sort_order>
|
| 133 |
+
<show_in_default>1</show_in_default>
|
| 134 |
+
<show_in_website>1</show_in_website>
|
| 135 |
+
<show_in_store>0</show_in_store>
|
| 136 |
+
<frontend_class>validate-number</frontend_class>
|
| 137 |
+
</sort_order>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
</fields>
|
| 140 |
</prismpay>
|
app/code/local/PrismPayTech/PrismPay/sql/.DS_Store
ADDED
|
Binary file
|
app/code/local/PrismPayTech/PrismPay/sql/prismpaytech_prismpay_setup/.DS_Store
ADDED
|
Binary file
|
app/code/local/PrismPayTech/PrismPay/sql/prismpaytech_prismpay_setup/install-0.1.0.php
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
$installer = $this;
|
| 3 |
+
$installer->startSetup();
|
| 4 |
+
$installer->run("
|
| 5 |
+
CREATE TABLE IF NOT EXISTS `prismpay_customer_profile` (
|
| 6 |
+
`id` int(11) NOT NULL AUTO_INCREMENT,
|
| 7 |
+
`customer_id` varchar(50) NOT NULL,
|
| 8 |
+
`profile_id` varchar(50) NOT NULL,
|
| 9 |
+
`last_4_digit` varchar(20) NOT NULL,
|
| 10 |
+
PRIMARY KEY (`id`)
|
| 11 |
+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
| 12 |
+
|
| 13 |
+
");
|
| 14 |
+
$installer->endSetup();
|
| 15 |
+
|
| 16 |
+
?>
|
app/code/local/PrismPayTech/PrismProfile/.DS_Store
CHANGED
|
Binary file
|
app/code/local/PrismPayTech/PrismProfile/Block/Form.php
CHANGED
|
@@ -167,7 +167,7 @@ class PrismPayTech_PrismProfile_Block_Form extends Mage_Payment_Block_Form
|
|
| 167 |
///get customer card profile
|
| 168 |
$connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 169 |
$select = $connectionRead->select()
|
| 170 |
-
->from('
|
| 171 |
->where('customer_id=?',$customer_id);
|
| 172 |
//->group('customer_id');
|
| 173 |
$row =$connectionRead->fetchRow($select); //return rows
|
| 167 |
///get customer card profile
|
| 168 |
$connectionRead = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 169 |
$select = $connectionRead->select()
|
| 170 |
+
->from('prismpay_customer_profile', array('*'))
|
| 171 |
->where('customer_id=?',$customer_id);
|
| 172 |
//->group('customer_id');
|
| 173 |
$row =$connectionRead->fetchRow($select); //return rows
|
app/code/local/PrismPayTech/PrismProfile/etc/config.xml
CHANGED
|
@@ -1,82 +1,62 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
</PrismPayTech_PrismProfile>
|
| 8 |
</modules>
|
| 9 |
-
|
| 10 |
<global>
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
</
|
| 16 |
-
</blocks>
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<!-- declare model group for new module -->
|
| 20 |
<models>
|
| 21 |
-
<!-- model group alias to be used in Mage::getModel('newmodule/...') -->
|
| 22 |
<prismprofile>
|
| 23 |
-
<!-- base class name for the model group -->
|
| 24 |
<class>PrismPayTech_PrismProfile_Model</class>
|
| 25 |
</prismprofile>
|
| 26 |
</models>
|
| 27 |
-
|
| 28 |
<prismprofile>
|
| 29 |
<class>PrismPayTech_PrismProfile_Helper</class>
|
| 30 |
</prismprofile>
|
| 31 |
</helpers>
|
| 32 |
-
|
| 33 |
-
<!-- declare resource setup for new module -->
|
| 34 |
<resources>
|
| 35 |
-
<!-- resource identifier -->
|
| 36 |
<prismprofile_setup>
|
| 37 |
-
<!-- specify that this resource is a setup resource and used for upgrades -->
|
| 38 |
<setup>
|
| 39 |
-
<!-- which module to look for install/upgrade files in -->
|
| 40 |
<module>PrismPayTech_PrismProfile</module>
|
|
|
|
| 41 |
</setup>
|
| 42 |
-
<!-- specify database connection for this resource -->
|
| 43 |
<connection>
|
| 44 |
-
<!-- do not create new connection, use predefined core setup connection -->
|
| 45 |
<use>core_setup</use>
|
| 46 |
</connection>
|
| 47 |
</prismprofile_setup>
|
| 48 |
<prismprofile_write>
|
| 49 |
<connection>
|
| 50 |
-
|
| 51 |
</connection>
|
| 52 |
</prismprofile_write>
|
| 53 |
<prismprofile_read>
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
</prismprofile_read>
|
| 58 |
</resources>
|
| 59 |
</global>
|
| 60 |
-
|
| 61 |
-
<!-- declare default configuration values for this module -->
|
| 62 |
<default>
|
| 63 |
-
<!-- 'payment' configuration section (tab) -->
|
| 64 |
<payment>
|
| 65 |
-
<!-- 'newmodule' configuration group (fieldset) -->
|
| 66 |
<prismprofile>
|
| 67 |
-
<!-- by default this payment method is inactive -->
|
| 68 |
<active>0</active>
|
| 69 |
-
<!-- model to handle logic for this payment method -->
|
| 70 |
<model>prismprofile/paymentMethod</model>
|
| 71 |
-
<!-- order status for new orders paid by this payment method -->
|
| 72 |
<order_status>pending</order_status>
|
| 73 |
-
<!-- default title for payment checkout page and order view page -->
|
| 74 |
<title>CreditCard Profile</title>
|
| 75 |
-
|
| 76 |
<cctypes>AE,VI,MC,DI</cctypes>
|
| 77 |
<payment_action>authorize_capture</payment_action>
|
| 78 |
<allowspecific>0</allowspecific>
|
| 79 |
</prismprofile>
|
| 80 |
-
|
| 81 |
</default>
|
| 82 |
</config>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
+
<PrismPayTech_PrismProfile>
|
| 5 |
+
<version>0.1.0</version>
|
| 6 |
+
</PrismPayTech_PrismProfile>
|
|
|
|
| 7 |
</modules>
|
| 8 |
+
|
| 9 |
<global>
|
| 10 |
+
<blocks>
|
| 11 |
+
<prismprofile>
|
| 12 |
+
<class>PrismPayTech_PrismProfile_Block</class>
|
| 13 |
+
</prismprofile>
|
| 14 |
+
</blocks>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
<models>
|
|
|
|
| 16 |
<prismprofile>
|
|
|
|
| 17 |
<class>PrismPayTech_PrismProfile_Model</class>
|
| 18 |
</prismprofile>
|
| 19 |
</models>
|
| 20 |
+
<helpers>
|
| 21 |
<prismprofile>
|
| 22 |
<class>PrismPayTech_PrismProfile_Helper</class>
|
| 23 |
</prismprofile>
|
| 24 |
</helpers>
|
| 25 |
+
|
|
|
|
| 26 |
<resources>
|
|
|
|
| 27 |
<prismprofile_setup>
|
|
|
|
| 28 |
<setup>
|
|
|
|
| 29 |
<module>PrismPayTech_PrismProfile</module>
|
| 30 |
+
|
| 31 |
</setup>
|
|
|
|
| 32 |
<connection>
|
|
|
|
| 33 |
<use>core_setup</use>
|
| 34 |
</connection>
|
| 35 |
</prismprofile_setup>
|
| 36 |
<prismprofile_write>
|
| 37 |
<connection>
|
| 38 |
+
<use>core_write</use>
|
| 39 |
</connection>
|
| 40 |
</prismprofile_write>
|
| 41 |
<prismprofile_read>
|
| 42 |
+
<connection>
|
| 43 |
+
<use>core_read</use>
|
| 44 |
+
</connection>
|
| 45 |
</prismprofile_read>
|
| 46 |
</resources>
|
| 47 |
</global>
|
| 48 |
+
|
|
|
|
| 49 |
<default>
|
|
|
|
| 50 |
<payment>
|
|
|
|
| 51 |
<prismprofile>
|
|
|
|
| 52 |
<active>0</active>
|
|
|
|
| 53 |
<model>prismprofile/paymentMethod</model>
|
|
|
|
| 54 |
<order_status>pending</order_status>
|
|
|
|
| 55 |
<title>CreditCard Profile</title>
|
|
|
|
| 56 |
<cctypes>AE,VI,MC,DI</cctypes>
|
| 57 |
<payment_action>authorize_capture</payment_action>
|
| 58 |
<allowspecific>0</allowspecific>
|
| 59 |
</prismprofile>
|
| 60 |
+
</payment>
|
| 61 |
</default>
|
| 62 |
</config>
|
app/code/local/PrismPayTech/PrismProfile/etc/system.xml
CHANGED
|
@@ -1,31 +1,20 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
-
|
| 4 |
-
<!-- payment tab -->
|
| 5 |
<payment>
|
| 6 |
<groups>
|
| 7 |
-
<!-- newmodule fieldset -->
|
| 8 |
<prismprofile translate="label" module="prismprofile">
|
| 9 |
-
<!-- will have title 'New Module' -->
|
| 10 |
<label>PrismPayProfile</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>
|
|
@@ -47,16 +36,16 @@
|
|
| 47 |
<show_in_website>1</show_in_website>
|
| 48 |
<show_in_store>0</show_in_store>
|
| 49 |
</title>
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
|
| 61 |
</fields>
|
| 62 |
</prismprofile>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<config>
|
| 3 |
+
<sections>
|
|
|
|
| 4 |
<payment>
|
| 5 |
<groups>
|
|
|
|
| 6 |
<prismprofile translate="label" module="prismprofile">
|
|
|
|
| 7 |
<label>PrismPayProfile</label>
|
|
|
|
| 8 |
<sort_order>670</sort_order>
|
|
|
|
| 9 |
<show_in_default>1</show_in_default>
|
| 10 |
<show_in_website>1</show_in_website>
|
| 11 |
<show_in_store>0</show_in_store>
|
| 12 |
<fields>
|
|
|
|
| 13 |
<active translate="label">
|
|
|
|
| 14 |
<label>Enabled</label>
|
|
|
|
| 15 |
<frontend_type>select</frontend_type>
|
|
|
|
| 16 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
|
|
|
| 17 |
<sort_order>1</sort_order>
|
|
|
|
| 18 |
<show_in_default>1</show_in_default>
|
| 19 |
<show_in_website>1</show_in_website>
|
| 20 |
<show_in_store>0</show_in_store>
|
| 36 |
<show_in_website>1</show_in_website>
|
| 37 |
<show_in_store>0</show_in_store>
|
| 38 |
</title>
|
| 39 |
+
<sort_order translate="label">
|
| 40 |
+
<label>Sort Order</label>
|
| 41 |
+
<frontend_type>text</frontend_type>
|
| 42 |
+
<sort_order>200</sort_order>
|
| 43 |
+
<show_in_default>1</show_in_default>
|
| 44 |
+
<show_in_website>1</show_in_website>
|
| 45 |
+
<show_in_store>0</show_in_store>
|
| 46 |
+
<frontend_class>validate-number</frontend_class>
|
| 47 |
+
</sort_order>
|
| 48 |
+
|
| 49 |
|
| 50 |
</fields>
|
| 51 |
</prismprofile>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>prismpay123456</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -14,9 +14,9 @@
|
|
| 14 |
<notes>Resolve Payment Flow Process
|
| 15 |
Now it will do Authorization-Capture Model</notes>
|
| 16 |
<authors><author><name>faisal</name><user>faisalshamsi</user><email>faisalsharifshamsi@gmail.com</email></author></authors>
|
| 17 |
-
<date>
|
| 18 |
-
<time>
|
| 19 |
-
<contents><target name="magelocal"><dir name="PrismPayTech"><dir name="PrismAch"><dir name="Block"><file name="Form.php" hash="d36391210a44ed75fde7b77dfde8a4aa"/><file name="Info.php" hash="4348248fc72efdc79a3da60353cbf3c5"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="deb366af64a17b0d89513165ca2583b0"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="3662b7184bfa91eb05738ad3fdd0b1f8"/></dir><dir name="etc"><file name="config.xml" hash="
|
| 20 |
<compatible/>
|
| 21 |
<dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
|
| 22 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>prismpay123456</name>
|
| 4 |
+
<version>1.1.5</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GPL</license>
|
| 7 |
<channel>community</channel>
|
| 14 |
<notes>Resolve Payment Flow Process
|
| 15 |
Now it will do Authorization-Capture Model</notes>
|
| 16 |
<authors><author><name>faisal</name><user>faisalshamsi</user><email>faisalsharifshamsi@gmail.com</email></author></authors>
|
| 17 |
+
<date>2017-07-12</date>
|
| 18 |
+
<time>10:52:43</time>
|
| 19 |
+
<contents><target name="magelocal"><dir name="PrismPayTech"><dir name="PrismAch"><dir name="Block"><file name="Form.php" hash="d36391210a44ed75fde7b77dfde8a4aa"/><file name="Info.php" hash="4348248fc72efdc79a3da60353cbf3c5"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="deb366af64a17b0d89513165ca2583b0"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="3662b7184bfa91eb05738ad3fdd0b1f8"/></dir><dir name="etc"><file name="config.xml" hash="4d7367afa25aa4196af320b767f5945c"/><file name="system.xml" hash="77082c4b912892203828b077c6561783"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="01cd21a99a8fecedba5a00b1fc1acaaa"/></dir><dir name="PrismPay"><dir name="Block"><file name="Form.php" hash="838953a7b6b1ca17340b1d1fca654579"/><file name="Info.php" hash="01f270ad25586d2614d9f12cf7aadda1"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Model"><file name="PaymentHelper.php" hash="484f5c6e4910d4b9ad25b36fe699cc13"/><file name="PaymentMethod.php" hash="2cb3cd954dc278baa620d48c9990094c"/></dir><dir name="etc"><file name="config.xml" hash="c1aa3a03578c31c45c49744a753b9549"/><file name="system.xml" hash="54c26a1d877f503368fe9fbcdc64661b"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="sql"><dir name="prismpaytech_prismpay_setup"><file name="install-0.1.0.php" hash="001a42d12d251b6bf3fe84d199652cfe"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="80841a2cd05032ec61ffd189861298d9"/></dir><file name=".DS_Store" hash="7f47e1bf898e2047715c8711a22bb6ed"/></dir><dir name="PrismProfile"><dir name="Block"><file name="Form.php" hash="b7616094133c83ef68b25e7412baf632"/><file name="Info.php" hash="a735b6064b59fd0207d61af8ad6d3291"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="c9cf3418443abefaade2e24a160ccfad"/></dir><dir name="Model"><file name="PaymentMethod.php" hash="335c9f5033919adfcfaa968219369546"/></dir><dir name="etc"><file name="config.xml" hash="21b8f0ad3896aa8551580222c4567db3"/><file name="system.xml" hash="acca20f6e65e2dad6644da6c5490967a"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="499cb24f2cc22de195150cd11852b20f"/></dir><file name=".DS_Store" hash="a4a2a15d8180ac3fc57559efea43eb67"/></dir></target><target name="mageetc"><dir name="modules"><file name="PrismPayTech_PrismAch.xml" hash="b33641bec0854135e7499f2ca88504c2"/><file name="PrismPayTech_PrismPay.xml" hash="e190bff166d4305a4d8e17a982940db9"/><file name="PrismPayTech_PrismProfile.xml" hash="22467c72a1d11bd6209b1bf0b4d7f5bd"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="prismpay"><dir name="form"><file name="pp.phtml" hash="822a5fe4c95f73cc099d56db13505c90"/><file name="prismpayach.phtml" hash="283d8ce341d5fcf1c27d6fedc5390b75"/><file name="prismpaycc.phtml" hash="6374d7127b941da03269dde0c6646cdd"/><file name="prismpayprofile.phtml" hash="c455281e383b10accd11aa6f58c0f5af"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="345f475e37b0aed5ca05358ae018b527"/></dir></dir></dir></dir></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies><required><php><min>5.0.0</min><max>7.0.0</max></php></required></dependencies>
|
| 22 |
</package>
|
