Skip to content

Commit

Permalink
Merge pull request #348 from ebanx/feature/dashboard-check
Browse files Browse the repository at this point in the history
Responds that the merchant has the plugin installed
  • Loading branch information
gpressutto5 committed Mar 13, 2017
2 parents 05c5877 + 824414d commit 70801a8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# CHANGELOG

## 1.5.4
## 1.6.0
* Feature - Integrates with EBANX Dashboard plugin presence check [#348](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/348)
* Improvement - Gets the banking ticket HTML by cUrl with url fopen fallback [#345](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/345)
* Improvement - Changed iframe boleto URL fetching to avoid xss injections [#345](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/345)
* Fix - Max instalment limits are now adjusted for local currency instead of assuming USD for prices [#349](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/349)
Expand Down
3 changes: 2 additions & 1 deletion woocommerce-gateway-ebanx/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ Yes, you can.

== Changelog ==

= 1.5.4 =
= 1.6.0 =
* Feature - Integrates with EBANX Dashboard plugin presence check [#348](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/348)
* Improvement - Gets the banking ticket HTML by cUrl with url fopen fallback [#345](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/345)
* Improvement - Changed iframe boleto URL fetching to avoid xss injections [#345](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/345)
* Fix - Max instalment limits are now adjusted for local currency instead of assuming USD for prices [#349](https://github.com/ebanx/woocommerce-gateway-ebanx/pull/349)
Expand Down
17 changes: 17 additions & 0 deletions woocommerce-gateway-ebanx/woocommerce-gateway-ebanx.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public function ebanx_router()
$hash = $_GET['hash'];
$this->ebanx_order_received($hash);
}
if ($action === 'dashboard-check') {
$this->ebanx_dashboard_check();
}
}
}

Expand Down Expand Up @@ -177,6 +180,20 @@ private function ebanx_order_received($hash)
exit;
}

/**
* Responds that the plugin is installed
*
* @return void
*/
private function ebanx_dashboard_check()
{
$json = json_encode(array(
'ebanx' => true
));
echo $json;
exit;
}

/**
* It enables the i18n of the plugin using the languages folders and the domain 'woocommerce-gateway-ebanx'
*
Expand Down

0 comments on commit 70801a8

Please sign in to comment.