Supported plans: prepaid and lifetime plans (one-time payment), monthly and yearly subscription plans.
Get your API credentials
1
Step 1
In the Paystack Dashboard, go to Settings → API Keys & Webhooks.
2
Step 2
Copy the Public Key and Secret Key. Live keys start with
pk_live_ and sk_live_, test keys with pk_test_ and sk_test_.Webhook
Required when Use Paystack Subscription is on. Paystack sends every event to one URL; Davinci processescharge.success and subscription.disable and verifies them with your Secret Key.
1
Step 1
On the same API Keys & Webhooks page, set Webhook URL to
https://YOUR_DOMAIN/webhooks/paystack (replace YOUR_DOMAIN with your domain).2
Step 2
Save the settings. Leave Callback URL as it is: Davinci sends its own callback URL with each transaction.
Configure Paystack in Davinci
1
Step 1
Go to Admin Panel → Finance Management → Finance Settings and click Paystack.
2
Step 2
Fill in the fields:
3
Step 3
Turn on Use Paystack Prepaid (prepaid and lifetime plans) and/or Use Paystack Subscription (monthly and yearly plans), then click Save.
Davinci doesn’t send a currency for one-time payments, so Paystack charges them in your Paystack account’s default currency. Price your plans in that currency.
Subscription plans
Each monthly or yearly subscription plan needs a Paystack Plan Code. Prepaid and lifetime plans don’t.1
Step 1
In the Paystack Dashboard, open Plans and create a plan with the same amount and interval as the Davinci plan.
2
Step 2
Copy the plan’s Plan Code (starts with
PLN_).3
Step 3
In Davinci, go to Finance Management → Subscription Plans, create or edit the plan, and paste the code into Paystack Plan Code under Payment Gateways Plan IDs.