Skip to content

Commit

Permalink
Remoção PagSeguro
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeBeserra committed Dec 28, 2020
1 parent bc43762 commit 65a22a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Laravel eCommerce Mercadopago Payment

Em teste não usar em Produção
Em teste não usar em Produção

Contribuições
-------------

Achou e corrigiu um bug ou tem alguma feature em mente e deseja contribuir?

* Faça um fork
* Adicione sua feature ou correção de bug (git checkout -b my-new-feature)
* Commit suas mudanças (git commit -am 'Added some feature')
* Rode um push para o branch (git push origin my-new-feature)
* Envie um Pull Request
* Obs.: Adicione exemplos para sua nova feature. Se seu Pull Request for relacionado a uma versão específica, o Pull Request não deve ser enviado para o branch master e sim para o branch correspondente a versão.
18 changes: 6 additions & 12 deletions src/Payment/MercadoPago.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
use Exception;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
use PagSeguro\Configuration\Configure;
use PagSeguro\Enum\PaymentMethod\Config\Keys;
use PagSeguro\Enum\PaymentMethod\Group;
use PagSeguro\Enum\Shipping\Type;
use PagSeguro\Library;
use PagSeguro\Services\Session;
use Symfony\Component\Serializer\Encoder\XmlEncoder;
use Webkul\Checkout\Models\Cart;
use Webkul\Checkout\Facades\Cart as WorldCart;
Expand Down Expand Up @@ -136,17 +130,17 @@ public function __construct()
*/
public function init()
{
Library::initialize();
Library::cmsVersion()->setName("Bagisto")->setRelease(Helper::MODULE_VERSION);
Library::moduleVersion()->setName("Bagisto")->setRelease(Helper::MODULE_VERSION);
//Library::initialize();
//Library::cmsVersion()->setName("Bagisto")->setRelease(Helper::MODULE_VERSION);
//Library::moduleVersion()->setName("Bagisto")->setRelease(Helper::MODULE_VERSION);

if (!$this->access_token || !$this->access_token) {
throw new Exception('Mercadopago: To use this payment method you need to inform the token and email account of Mercadopago account.');
}

Configure::setAccountCredentials($this->email, $this->token);
Configure::setCharset('UTF-8');
Configure::setEnvironment($this->environment);
//Configure::setAccountCredentials($this->email, $this->token);
//Configure::setCharset('UTF-8');
//Configure::setEnvironment($this->environment);

$mp = new \MercadoPago\SDK();

Expand Down

0 comments on commit 65a22a3

Please sign in to comment.