Skip to content

Commit

Permalink
Update PaymentFactory.php
Browse files Browse the repository at this point in the history
Correção no factory de wrapper de pagamentos
  • Loading branch information
RodriAndreotti authored Jun 16, 2020
1 parent 3742790 commit e4c66b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Factory/PaymentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public function createPaymentWrapper(\string $method)
{
switch ($method) {
case \Payment\Adapter\AdapterType::PAGSEGURO:
$adapter = new \Payment\Adapter\Payment\Pagseguro($config);
$adapter = new \Payment\Adapter\Payment\Pagseguro($this->config);
break;
case \Payment\Adapter\AdapterType::PAYPAL:
$adapter = new \Payment\Adapter\Payment\Paypal($config);
$adapter = new \Payment\Adapter\Payment\Paypal($this->config);
break;
default:
throw new PaymentMethodNotSupported('Payment Gateway not supported', 4557);
Expand Down

0 comments on commit e4c66b3

Please sign in to comment.