Skip to content

Commit

Permalink
v.2.1.0: Release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipeMata committed Sep 24, 2018
1 parent 06eb93c commit d4428f6
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 24 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v2.1.0

* Delete: Bandeiras jcb, aura e discover do checkout da Gerencianet.
* Add: Bandeira hipertcard no checkout da Gerencianet.

# v2.0.1

* Corrige valor final do boleto com aplicação do desconto de cupom.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Módulo de Integração Gerencianet para OpenCart-2.3 - Versão 2.0.1 #
# Módulo de Integração Gerencianet para OpenCart-2.3 - Versão 2.1.0 #

:warning: **Este módulo é compatível apenas com as versões do OpenCart superior a 2.3.0.2. Caso você tenha uma versão inferior do Opencart, você deve seguir os passos deste [link](https://github.com/gerencianet/gn-api-opencart).**

Expand Down
Binary file modified auto/gerencianet.ocmod.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@
background:url(images/sprite-gn.png);
background-position:-80px -40px;
}

.gn-aura{
background:url(images/sprite-gn.png);
background-position:-120px 0;
}

.gn-hipercard{
background:url(../gerencianet/images/sprite-gn.png);
background-position:-160px -40px;
}

.gn-card-brand-selector input:active +.gn-card-brand{opacity: .9;}
.gn-card-brand-selector input:checked +.gn-card-brand{
-webkit-filter: none;
Expand Down
6 changes: 6 additions & 0 deletions manual/upload/catalog/view/javascript/gerencianet/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,17 @@
background:url(../gerencianet/images/sprite-gn.png);
background-position:-80px -40px;
}

.gn-aura{
background:url(../gerencianet/images/sprite-gn.png);
background-position:-120px 0;
}

.gn-hipercard{
background:url(../gerencianet/images/sprite-gn.png);
background-position:-160px -40px;
}

.gn-card-brand-selector input:active +.gn-card-brand{opacity: .9;}
.gn-card-brand-selector input:checked +.gn-card-brand{
-webkit-filter: none;
Expand Down
6 changes: 6 additions & 0 deletions manual/upload/catalog/view/javascript/gerencianet/style2.css
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,17 @@
background:url(../gerencianet/images/sprite-gn.png);
background-position:-80px -40px;
}

.gn-reset .gn-aura{
background:url(../gerencianet/images/sprite-gn.png);
background-position:-120px 0;
}

.gn-reset .gn-hipercard{
background:url(../gerencianet/images/sprite-gn.png);
background-position:-160px -40px;
}

.gn-reset .gn-card-brand-selector input:active +.gn-reset .gn-card-brand{opacity: .9;}
.gn-reset .gn-card-brand-selector input:checked +.gn-reset .gn-card-brand{
-webkit-filter: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,21 +426,13 @@
<input id="diners" type="radio" name="gn_card_brand" id="gn_card_brand" value="diners" class="gn-hide" />
<label class="gn-card-brand gn-diners" for="diners"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="discover" type="radio" name="gn_card_brand" id="gn_card_brand" value="discover" class="gn-hide" />
<label class="gn-card-brand gn-discover" for="discover"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="jcb" type="radio" name="gn_card_brand" id="gn_card_brand" value="jcb" class="gn-hide" />
<label class="gn-card-brand gn-jcb" for="jcb"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="elo" type="radio" name="gn_card_brand" id="gn_card_brand" value="elo" class="gn-hide" />
<label class="gn-card-brand gn-elo" for="elo"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="aura" type="radio" name="gn_card_brand" id="gn_card_brand" value="aura" class="gn-hide" />
<label class="gn-card-brand gn-aura" for="aura"></label>
<input id="hipercard" type="radio" name="gn_card_brand" id="gn_card_brand" value="hipercard" class="gn-hide" />
<label class="gn-card-brand gn-hipercard" for="hipercard"></label>
</div>
<div class="clear"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,21 +376,13 @@
<input id="diners" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="diners" class="gn-hide" />
<label class="gn-card-brand gn-diners" for="diners"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="discover" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="discover" class="gn-hide" />
<label class="gn-card-brand gn-discover" for="discover"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="jcb" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="jcb" class="gn-hide" />
<label class="gn-card-brand gn-jcb" for="jcb"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="elo" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="elo" class="gn-hide" />
<label class="gn-card-brand gn-elo" for="elo"></label>
</div>
<div class="pull-left gn-card-brand-content">
<input id="aura" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="aura" class="gn-hide" />
<label class="gn-card-brand gn-aura" for="aura"></label>
<input id="hipercard" type="radio" name="input-payment-card-brand" id="input-payment-card-brand" value="hipercard" class="gn-hide" />
<label class="gn-card-brand gn-hipercard" for="hipercard"></label>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public function send($method, $route, $body)

try {
return $this->request->send($method, $route, ['json' => $body,
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'opencart-2.0.1', 'partner-token' => $partner_token]]);
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'opencart-2.1.0', 'partner-token' => $partner_token]]);
} catch (AuthorizationException $e) {
$this->auth->authorize();

return $this->request->send($method, $route, ['json' => $body,
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'opencart-2.0.1', 'partner-token' => $partner_token]]);
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'opencart-2.1.0', 'partner-token' => $partner_token]]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(array $options = null)
'base_url' => $this->config['baseUri'],
'headers' => [
'Content-Type' => 'application/json',
'api-sdk' => 'opencart-2.0.1',
'api-sdk' => 'opencart-2.1.0',
'partner-token' => $partner_token
],
]);
Expand Down

0 comments on commit d4428f6

Please sign in to comment.