Events are important actions that occur within your FedaPay account, such as the creation of a transaction or an update to a customer. Understanding how these events work allows you to better manage your transactions and provide a better experience for your customers.
Whenever an event occurs, FedaPay notifies you in real-time through event notifications. These notifications can be used to track and react to what is happening within your account, such as when a payment is approved or when a customer is updated.
Transactions on FedaPay follow a lifecycle, and each stage in this lifecycle generates a specific event. Here’s how it works:
Transaction Creation : Once the customer is created, you can assign a transaction to them. This triggers the transaction.created event.
Tracking Transactions: A transaction can evolve in several ways:
À chaque changement de statut, un nouvel événement est généré pour vous tenir informé. Par exemple, dès qu’une transaction est mise à jour, l’événement transaction.updated est déclenché.
Customers can also have specific events:
customer.updated : The customer’s profile has been modified (e.g., their name or email address).
customer.deleted : The customer has been deleted from your account.
Each event contains detailed information about what has just happened. You can view all these events in the Events section of your FedaPay dashboard, which gives you a complete history of all important actions in your account.
Event management helps you to:
Track Payments: You are informed in real-time of the status of each transaction.
Manage Customers: You can track changes made to customer profiles.
Automate Processes: With event notifications, you can automate certain tasks on your site, like sending a confirmation email after a successful payment.
Webhooks are automatic notifications that FedaPay sends to your application or website when important events occur on your account. For example, you can receive a webhook when a transaction is successful or disputed.
These notifications are particularly useful because they allow you to stay informed in real-time without having to manually check what is happening on your FedaPay account.
Webhooks are essential to be quickly alerted of important actions on your account, such as:
Successful or failed payments.
Refunds.
Disputed transactions.
Each time an event occurs (e.g., an accepted payment), FedaPay creates an Event object. This object contains all relevant information about the event, such as the event type (successful payment) and associated details.
Then, FedaPay sends this object to your chosen URL (called the endpoint) via an HTTP request. It is like FedaPay sending you a message to inform you of what has happened.
Creating a Webhook
To receive Webhooks, you need to configure a URL on your site that can receive these notifications. Follow these steps:
Enter the destination URL
Optional settings:
Add HTTP headers
Select event types
Finalization and activation
Managing Your Webhooks
Once your Webhooks are created, you can:
Modify: Change the URL or the events you want to track.
Delete: If you no longer need this Webhook, you can remove it.
View details: You can see all information about the Webhook (URL, tracked events, etc.).
When you define a Webhook endpoint, FedaPay will send event notifications related to that endpoint when they are triggered on FedaPay.
FedaPay executes each webhook event delivery in concurrent tasks.
It is advisable to monitor your system closely and prevent potential errors. Follow our recommendations for optimal service implementation.
Webhook endpoints may sometimes receive the same event multiple times. You can prevent processing duplicate events by following these guidelines:
To prevent scalability issues and ensure system stability, follow these recommendations:
To ensure webhook security, make sure your server meets the following requirements:
IP Address Verification
Webhook Signature Verification
Each webhook is signed by FedaPay via the X-FEDAPAY-SIGNATURE header.
You can verify these signatures using:
How to Verify Webhook Signatures ?
Retrieve the Endpoint Secret
Signature Verification
Tools for Signature Verification
Prevent Replay Attacks
Respond Quickly with a 2xx Status
Events are important actions that occur within your FedaPay account, such as the creation of a transaction or an update to a customer. Understanding how these events work allows you to better manage your transactions and provide a better experience for your customers.
Whenever an event occurs, FedaPay notifies you in real-time through event notifications. These notifications can be used to track and react to what is happening within your account, such as when a payment is approved or when a customer is updated.
Transactions on FedaPay follow a lifecycle, and each stage in this lifecycle generates a specific event. Here’s how it works:
Transaction Creation : Once the customer is created, you can assign a transaction to them. This triggers the transaction.created event.
Tracking Transactions: A transaction can evolve in several ways:
À chaque changement de statut, un nouvel événement est généré pour vous tenir informé. Par exemple, dès qu’une transaction est mise à jour, l’événement transaction.updated est déclenché.
Customers can also have specific events:
customer.updated : The customer’s profile has been modified (e.g., their name or email address).
customer.deleted : The customer has been deleted from your account.
Each event contains detailed information about what has just happened. You can view all these events in the Events section of your FedaPay dashboard, which gives you a complete history of all important actions in your account.
Event management helps you to:
Track Payments: You are informed in real-time of the status of each transaction.
Manage Customers: You can track changes made to customer profiles.
Automate Processes: With event notifications, you can automate certain tasks on your site, like sending a confirmation email after a successful payment.
Webhooks are automatic notifications that FedaPay sends to your application or website when important events occur on your account. For example, you can receive a webhook when a transaction is successful or disputed.
These notifications are particularly useful because they allow you to stay informed in real-time without having to manually check what is happening on your FedaPay account.
Webhooks are essential to be quickly alerted of important actions on your account, such as:
Successful or failed payments.
Refunds.
Disputed transactions.
Each time an event occurs (e.g., an accepted payment), FedaPay creates an Event object. This object contains all relevant information about the event, such as the event type (successful payment) and associated details.
Then, FedaPay sends this object to your chosen URL (called the endpoint) via an HTTP request. It is like FedaPay sending you a message to inform you of what has happened.
Creating a Webhook
To receive Webhooks, you need to configure a URL on your site that can receive these notifications. Follow these steps:
Enter the destination URL
Optional settings:
Add HTTP headers
Select event types
Finalization and activation
Managing Your Webhooks
Once your Webhooks are created, you can:
Modify: Change the URL or the events you want to track.
Delete: If you no longer need this Webhook, you can remove it.
View details: You can see all information about the Webhook (URL, tracked events, etc.).
When you define a Webhook endpoint, FedaPay will send event notifications related to that endpoint when they are triggered on FedaPay.
FedaPay executes each webhook event delivery in concurrent tasks.
It is advisable to monitor your system closely and prevent potential errors. Follow our recommendations for optimal service implementation.
Webhook endpoints may sometimes receive the same event multiple times. You can prevent processing duplicate events by following these guidelines:
To prevent scalability issues and ensure system stability, follow these recommendations:
To ensure webhook security, make sure your server meets the following requirements:
IP Address Verification
Webhook Signature Verification
Each webhook is signed by FedaPay via the X-FEDAPAY-SIGNATURE header.
You can verify these signatures using:
How to Verify Webhook Signatures ?
Retrieve the Endpoint Secret
Signature Verification
Tools for Signature Verification
Prevent Replay Attacks
Respond Quickly with a 2xx Status