Your clients can pay invoices and store orders with Paystack, on Paystack's secure checkout page.
Requirements
- RISE 4.2 or newer, with the cron job running.
- A Paystack account.
- Every client contact who pays needs a valid email address.
Get your credentials
Test (sandbox) credentials
- Create an account on the Paystack sign-up page and confirm your email. New accounts start in Test mode.
- Secret Key: open Settings > API Keys & Webhooks and copy the Test Secret Key (starts with sk_test_). Don't use the public key (pk_).
- On the same page, paste the Webhook listener link from RISE into Test Webhook URL and save.
- If the page shows a webhook signing secret (whsec_), copy it into Webhook Signing Secret.
Live credentials
- Click Activate business (or Go live) in the dashboard and send your business details, ID and the bank account for payouts. Paystack reviews and activates your account.
- After activation, open Settings > API Keys & Webhooks, copy the Live Secret Key (sk_live_) and set the Live Webhook URL to the same Webhook listener link.
Setup
- Install and activate the plugin in Settings > Plugins.
- Go to Settings > Payment methods and edit Paystack.
- Enter the Secret Key (see Get your credentials). A test key (sk_test_) takes test payments, a live key (sk_live_) takes real payments.
- Set the Paystack webhook URL of the same mode to the Webhook listener link shown here. If your dashboard shows a webhook signing secret (whsec_), paste it in Webhook Signing Secret.
- Turn on Available on Invoice and save.
Paystack takes NGN, USD, GHS, ZAR, KES and XOF. The currency must be turned on for your Paystack account: a test account often has only the currency of its country. When it isn't, the client sees a message and can choose another payment method.
Clients can pay from the client portal and from a public invoice link (no sign-in). Amounts are charged exactly, with their decimals.
Testing
With the test key (sk_test_), open an invoice and click the Paystack button. The test checkout page lets you choose Success, Bank Authentication or Declined, or pay with the test card 4084 0840 8408 4081, any future date and CVV 408. After a successful payment you are sent back to RISE and the payment is added to the invoice. When you switch to the live key, payments started with the test key are not recorded.