Skip to content

Commit 72c9a2a

Browse files
committed
fix: resolved bug Typed property $response must not be accessed before initialization
1 parent 39d513a commit 72c9a2a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Traits/Paystack/TransactionTrait.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ private function generateCheckoutLink(): void
3333
]);
3434
}
3535

36-
$this->httpClient()->post(url: 'transaction/initialize', formParams: $this->payload);
36+
$this->makeRequest(
37+
method: 'POST',
38+
requestUrl: 'transaction/initialize',
39+
formParams: $this->payload,
40+
);
3741
}
3842

3943
/**

0 commit comments

Comments
 (0)