Skip to content

Commit 4276bee

Browse files
committed
wip
1 parent 22777c7 commit 4276bee

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/Client.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Cone\SimplePay\Api\TransactionApi;
66
use GuzzleHttp\Client as Http;
77
use GuzzleHttp\ClientInterface;
8+
use GuzzleHttp\HandlerStack;
89

910
class Client
1011
{
@@ -64,9 +65,14 @@ public function config(): Configuration
6465
*/
6566
public function client(): ClientInterface
6667
{
67-
$client = new Http();
68+
$stack = HandlerStack::create();
6869

69-
//
70+
// Siganture Header middleware
71+
// Form data middleware
72+
73+
$client = new Http([
74+
'handler' => $stack,
75+
]);
7076

7177
return $client;
7278
}

0 commit comments

Comments
 (0)