Skip to content

Commit 6bfd3af

Browse files
authored
Merge pull request #39 from Borisw123/dev.borisw.fedapay
`Update fedapay.md to reflect changes in EasySwitch API methods (chec…
2 parents 467ce68 + be01940 commit 6bfd3af

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/integrations/fedapay.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ EasySwitch provides a unified interface for all payment operations. Here are the
122122
| Method | Description | Returns |
123123
|--------|-------------|---------|
124124
| `send_payment(transaction)` | Send a payment transaction | `PaymentResponse` |
125-
| `check_status(transaction_id, provider)` | Check transaction status | `TransactionStatus` |
126-
| `validate_webhook(payload, headers, provider)` | Validate webhook signature | `bool` |
127-
| `parse_webhook(payload, headers, provider)` | Parse webhook into WebhookEvent | `WebhookEvent` |
125+
| `check_status(transaction_id)` | Check transaction status | `TransactionStatus` |
126+
| `validate_webhook(payload, headers)` | Validate webhook signature | `bool` |
127+
| `parse_webhook(payload, headers)` | Parse webhook into WebhookEvent | `WebhookEvent` |
128128

129129
> **Note**: `cancel_transaction()` and `refund()` are not supported by FedaPay. See [FedaPay Limitations](#4-fedapay-limitations) for alternatives.
130130
@@ -317,8 +317,8 @@ EasySwitch offers two main webhook methods:
317317

318318
| Method | Description | Returns |
319319
|--------|-------------|---------|
320-
| `validate_webhook(payload, headers, provider)` | Validate webhook signature only | `bool` |
321-
| `parse_webhook(payload, headers, provider)` | Parse webhook into WebhookEvent (calls validate_webhook internally) | `WebhookEvent` |
320+
| `validate_webhook(payload, headers)` | Validate webhook signature only | `bool` |
321+
| `parse_webhook(payload, headers)` | Parse webhook into WebhookEvent (calls validate_webhook internally) | `WebhookEvent` |
322322

323323
> **Important**: `parse_webhook()` automatically calls `validate_webhook()` internally, so you don't need to validate separately when using `parse_webhook()`. Use `validate_webhook()` only when you need to check signature validity without parsing the webhook data.
324324
@@ -347,7 +347,6 @@ def handle_fedapay_webhook():
347347
webhook_event = client.parse_webhook(
348348
payload=payload,
349349
headers=headers,
350-
provider=Provider.FEDAPAY
351350
)
352351

353352
# Process webhook event

0 commit comments

Comments
 (0)