How to Integrate Webhooks
By integrating webhooks with your Paystack payment gateway, you can automate responses to various payment-related events. This ensures that your system remains up-to-date with real-time information regarding transactions, subscriptions, and refunds. Following these steps will help you efficiently manage these events and provide a seamless experience for your users.
- Log in to the Paystack Payment Gateway site
- Go to the Dashboard and navigate to Developers --> Webhooks.
- Type the following codes
| URL | https://apigateway.muvi.com/notification/paystack |
| Events | subscription.create subscription.not_renew charge.success invoice.payment_failed refund.processed |
Generate Restricted API Keys
Muvi recommends using Restricted API Keys for better security. These keys allow you to grant access only to the specific permissions required for Muvi integration, unlike General API Keys, which provide broader access to your Paystack account.
You can create a Restricted API Key from the new Paystack Dashboard. The image and steps below show the process on the new Dashboard.
- Go to Developers → API Keys.
- Select Create restricted key.
- Choose the permissions the key needs, give it a name, and set an expiration date.
- Complete the verification steps.
- Copy your new key and store it securely. You’ll only see the full key once.
- Replace the existing secret key used by your integration with the new Restricted API Key.
Going forward, API keys will have a 12-month expiry period as an additional security measure.
Required API Permissions for Muvi Integration
- Plans - Read + Write
- Customers - Read + Write
- Transactions - Read + Write
- Subscriptions - Read + Write
- Refunds - Write
- Webhook - Read + Write
Enable IP whitelisting
IP: 34.205.115.74
IP whitelisting adds another layer of protection by limiting where your API key can be used.
You choose the IP addresses of the servers you trust, and Paystack will reject requests using your key if they come from anywhere else. This means that even if a key is ever exposed, requests from an unapproved IP address will be blocked.
You can set up IP whitelisting from the new Paystack Dashboard. The image and steps below show you how.
- Make sure your Dashboard is in Live mode.
- Go to Developers → API Keys.
- Select + Add IP address
- Enter the public IP address you want to approve and select Save.
You can add up to 30 approved IP addresses. If your integration doesn’t use fixed IP addresses or you’re unable to enable IP whitelisting, please reply to this email and our Engineering Team will help you with your setup.