Skip to content

Commit

Permalink
Send 'true' or 'false' text to Oxipay for x_test
Browse files Browse the repository at this point in the history
Addresses feedback on issue #16
  • Loading branch information
iugo-josh committed Mar 8, 2017
1 parent 7771bac commit 1c064cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Oxipay/OxipayPaymentGateway/Block/Formoxipay.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getPaymentForm()
'x_url_callback' =>$this->_urlBuilder->getUrl("oxipay/checkout/saveorder",['quoteId' => $cart->getQuote()->getId()]),
'x_url_complete' => $this->_urlBuilder->getUrl("oxipay/checkout/success",['quoteId' => $cart->getQuote()->getId()]),
'x_url_cancel' => $this->_urlBuilder->getUrl("checkout"),
'x_test' => $this->_scopeConfigInterface->getValue('payment/oxipay_gateway/test_mode')?true:false,
'x_test' => $this->_scopeConfigInterface->getValue('payment/oxipay_gateway/test_mode') ? 'true' : 'false',
'x_shop_country' => 'AU',
'x_shop_name' =>$store->getStore()->getName(),
'x_customer_first_name' => $firstname,
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())
'x_test' => $this->config->getValue('test_mode', $order->getStoreId()) ? 'true' : 'false'
];

$merchantkey = $this->config->getValue(
Expand Down

0 comments on commit 1c064cc

Please sign in to comment.