Skip to content

Commit

Permalink
Merge pull request #7 from Dagimassefa/main
Browse files Browse the repository at this point in the history
Fix endpoint URL for transfer creation  Updated createTransfer method from /transfer to /transfers to resolve the "POST method not supported" error.
  • Loading branch information
isrugeek authored Oct 23, 2024
2 parents 7728adb + 8dc12de commit ecc585a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Chapa.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function verifyTransaction($id)
public function createTransfer(array $data)
{
$transfer = Http::withToken($this->secretKey)->post(
$this->baseUrl . '/transfer',
$this->baseUrl . '/transfers',
$data
)->json();

Expand Down

0 comments on commit ecc585a

Please sign in to comment.