Skip to content

Commit

Permalink
Merge branch 'config-fixes' into checkout-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iugo-josh committed Mar 23, 2017
2 parents e9d1185 + 3c49c76 commit 81130f1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Oxipay\OxipayPaymentGateway\Controller\Checkout;

use Magento\Framework\DataObject;
Expand All @@ -18,7 +14,7 @@ public function execute()
'x_account_id'=>$this->getRequest()->getParam('x_account_id'),
'x_reference'=>$this->getRequest()->getParam('x_reference'),
'x_currency' =>$this->getRequest()->getParam('x_currency'),
'x_test'=>$this->getRequest()->getParam('x_test'),
'x_test'=>'false',
'x_amount' => $this->getRequest()->getParam('x_amount'),
'x_gateway_reference'=>$this->getRequest()->getParam('x_gateway_reference'),
'x_timestamp' => $this->getRequest()->getParam('x_timestamp'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function build(array $buildSubject)
'x_customer_shipping_city' => $shippingaddress->getCity(),
'x_customer_shipping_state' => $shippingaddress->getRegionCode(),
'x_customer_shipping_zip' => $shippingaddress->getPostcode(),
'x_test' => $this->config->getValue('test_mode', $order->getStoreId()) ? 'true' : 'false'
'x_test' => 'false'
];

$merchantkey = $this->config->getValue(
Expand Down
4 changes: 0 additions & 4 deletions Oxipay/OxipayPaymentGateway/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
<field id="debug" translate="label" type="select" sortOrder="85" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Debug</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="test_mode" translate="label" type="select" sortOrder="85" showInDefault="1" showInWebsite="1" showInStore="0">
<label>Test Mode</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="allowspecific" translate="label" type="hidden" sortOrder="86" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Payment from Applicable Countries</label>
Expand Down
1 change: 0 additions & 1 deletion Oxipay/OxipayPaymentGateway/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<title>Oxipay</title>
<description>Pay the easier way</description>
<api_key backend_model="Magento\Config\Model\Config\Backend\Encrypted" />
<test_mode>0</test_mode>
<gateway_url>https://secure.oxipay.com.au/Checkout?platform=default</gateway_url>
<allowspecific>1</allowspecific>
<specificcountry>AU,NZ</specificcountry>
Expand Down

0 comments on commit 81130f1

Please sign in to comment.