Skip to content

Commit

Permalink
Remove double invocation to withToken() (#3)
Browse files Browse the repository at this point in the history
* Remove double invocation to withToken()

* Cleanup
  • Loading branch information
marianogoldman authored Sep 14, 2020
1 parent c485e5d commit 56139b0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PayPalApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
namespace Puntodev\Payments;


use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
use Illuminate\Http\Client\RequestException;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Http;
Expand Down Expand Up @@ -70,7 +68,6 @@ public function findOrderById(string $id): ?array
{
$token = $this->getToken();
return Http::withToken($token['access_token'])
->withToken($token['access_token'])
->get("https://{$this->host}/v2/checkout/orders/$id")
->throw()
->json();
Expand Down

0 comments on commit 56139b0

Please sign in to comment.