Skip to content

Commit

Permalink
Update README to include verifywebhook command
Browse files Browse the repository at this point in the history
  • Loading branch information
isrugeek committed Aug 21, 2024
1 parent 664c3d8 commit d3f1a53
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- **Verify Transactions:** Check the status of a transaction.
- **Get Banks:** Retrieve a list of supported banks.
- **Get Transaction Events:** Fetch and display events related to a specific transaction.
- **Webhook Management:** Listen to and test webhooks.
- **Webhook Management:** Listen to and test webhooks, including signature verification using HMAC SHA256.

## Installation

Expand Down Expand Up @@ -104,6 +104,19 @@ chapa webhook listen /pay/chapa-webhook
chapa webhook ping http://localhost:5000/pay/chapa-webhook
```

### Verify a Webhook URL

You can verify your webhook URL using Chapa's standard webhook protocol, which includes checking the URL's reachability, support for the POST method, SSL certificate validity, and validating the webhook signature with a provided secret key.

```bash
chapa webhook verifywebhook https://webhook.site/your-webhook-url --usekey your_secret_key
```

- **URL:** The webhook URL you want to verify.
- **--usekey:** (Optional) Your secret key used to sign the request and validate the response. This is crucial for ensuring the integrity and authenticity of webhook requests.



## Configuration

### Storing the Token
Expand Down

0 comments on commit d3f1a53

Please sign in to comment.