Skip to content

Commit

Permalink
edits done
Browse files Browse the repository at this point in the history
  • Loading branch information
emekalites committed May 24, 2018
1 parent af210ed commit 95ca9be
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Model/PaymentGateway.php
Expand Up @@ -10,7 +10,7 @@

class PaymentGateway extends \Magento\Payment\Model\Method\AbstractMethod
{
protected $_code = 'payscrowgateway';
// protected $_code = 'payscrowgateway';
// protected $_formBlockType = 'payscrowgateway/form_payscrowGateway';
// protected $_infoBlockType = 'payscrowgateway/info_payscrowGateway';
// protected $_isInitializeNeeded = true;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -5,7 +5,7 @@
"php": "~5.5.0|~5.6.0|^7.0.0"
},
"type": "magento2-module",
"version": "1.0.3",
"version": "1.0.4",
"authors": [
{
"name": "Chukwuemeka Ihedoro",
Expand Down
23 changes: 10 additions & 13 deletions etc/adminhtml/system.xml
@@ -1,38 +1,35 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="payment">
<group id="payscrow_paymentgateway" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<section id="payscrow">
<group id="paymentgateway" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Payscrow - Premium Payment Escrow Service</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="title" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="title" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Title</label>
</field>


<field id="access_key" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="access_key" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Access key</label>
</field>
<field id="order_status" translate="label" type="select" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="order_status" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>New order status</label>
<source_model>Magento\Sales\Model\Config\Source\Order\Status\NewStatus</source_model>
</field>
<field id="sandbox_mode" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="sandbox_mode" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Sandbox Mode</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="max_delivery_duration" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="max_delivery_duration" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Max. Delivery Duration</label>
</field>


<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Payment from Applicable Countries</label>
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
</field>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="41" showInDefault="1" showInWebsite="1" showInStore="0">
<field id="specificcountry" translate="label" type="multiselect" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Payment from Specific Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty>
Expand Down
10 changes: 5 additions & 5 deletions etc/config.xml
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<payment>
<payscrow_paymentgateway>
<payscrow>
<paymentgateway>
<title>PayScrow - Premium Escrow Payment Service</title>
<model>Payscrow\PaymentGateway\Model\PaymentGateway</model>
<order_status>pending</order_status>
Expand All @@ -14,9 +14,9 @@
<gateway_demo_url>http://ps.ofekpc.com/</gateway_demo_url>
<access_key></access_key>
<access_demo_key>d1e5a982-fa05-414b-803c-b197307e4918</access_demo_key>
<sandbox_mode>0</sandbox_mode>
<sandbox_mode>1</sandbox_mode>
<max_delivery_duration></max_delivery_duration>
</payscrow_paymentgateway>
</payment>
</paymentgateway>
</payscrow>
</default>
</config>
3 changes: 2 additions & 1 deletion etc/module.xml
@@ -1,5 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Payscrow_PaymentGateway" setup_version="1.0.0" >
<module name="Payscrow_PaymentGateway" setup_version="1.0.0">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down

0 comments on commit 95ca9be

Please sign in to comment.