Skip to content

Commit

Permalink
Merge pull request #201 from PluginAndPartners/hotfix/wc-api-call
Browse files Browse the repository at this point in the history
check in same base... lower
  • Loading branch information
lira authored Feb 3, 2021
2 parents 03cd090 + 4fa768d commit 3006454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/module/WC_WooMercadoPago_Configs.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function setPaymentGateway($methods = null)
global $wp;
if (!empty($wp) && isset($wp->query_vars['wc-api'])) {
$api_request = wc_clean($wp->query_vars['wc-api']);
if (!empty($api_request) && in_array($api_request, ['wc_woomercadopago_basicgateway', 'wc_woomercadopago_customgateway', 'wc_woomercadopago_ticketgateway'])) {
if (!empty($api_request) && in_array(strtolower($api_request), ['wc_woomercadopago_basicgateway', 'wc_woomercadopago_customgateway', 'wc_woomercadopago_ticketgateway'])) {
$methods[] = $api_request;
}
return $methods;
Expand Down

0 comments on commit 3006454

Please sign in to comment.