|
1 | 1 | <?php
|
2 | 2 |
|
3 |
| -namespace Payhub\Gateways\Asaas; |
| 3 | +namespace PHPay\Gateways\Asaas; |
4 | 4 |
|
5 | 5 | use Illuminate\Support\Facades\Http;
|
6 |
| -use Payhub\Contracts\GatewayInterface; |
7 |
| -use Payhub\Exceptions\AsaasExceptions; |
8 |
| -use Payhub\Gateways\Asaas\Enums\{BillingType, ClientMethods}; |
9 |
| -use Payhub\Gateways\Asaas\Requests\AsaasPixRequest; |
10 |
| -use Payhub\Gateways\Asaas\Resources\{Auth, Client}; |
11 |
| -use Payhub\Gateways\Gateway; |
| 6 | +use PHPay\Contracts\GatewayInterface; |
| 7 | +use PHPay\Exceptions\AsaasExceptions; |
| 8 | +use PHPay\Gateways\Asaas\Enums\{BillingType, ClientMethods}; |
| 9 | +use PHPay\Gateways\Asaas\Requests\AsaasPixRequest; |
| 10 | +use PHPay\Gateways\Asaas\Resources\{Auth, Client}; |
| 11 | +use PHPay\Gateways\Gateway; |
12 | 12 |
|
13 | 13 | class AsaasGateway extends Gateway implements GatewayInterface
|
14 | 14 | {
|
@@ -43,23 +43,6 @@ public function client(array $client = []): Client
|
43 | 43 | {
|
44 | 44 | return new Client($client, $this);
|
45 | 45 | }
|
46 |
| - // { |
47 |
| - // if (! ClientMethods::tryFrom($method)) { |
48 |
| - // return (new AsaasExceptions())('Method not found'); |
49 |
| - // } |
50 |
| - |
51 |
| - // if (! method_exists(Client::class, $method)) { |
52 |
| - // return (new AsaasExceptions())('Method not found'); |
53 |
| - // } |
54 |
| - |
55 |
| - // try { |
56 |
| - // $this->customerId = (new Client())::$method($client); |
57 |
| - // } catch (\Exception $e) { |
58 |
| - // return (new AsaasExceptions())($e->getMessage()); |
59 |
| - // } |
60 |
| - |
61 |
| - // return $this; |
62 |
| - // } |
63 | 46 |
|
64 | 47 | /**
|
65 | 48 | * generate pix
|
|
0 commit comments