WHMCS

Let your clients pay WHMCS invoices with SADAD Pay.

The SADAD Pay gateway module for WHMCS lets your clients pay their WHMCS invoices with SADAD Pay. Clients pay on the SADAD Pay payment page with KNET, card or Apple Pay.

ItemDetails
ModuleSadad Payment on the WHMCS Marketplace
WHMCS versionsListed as compatible with WHMCS 7 and 8, up to 8.7
PaymentOff-site: the client pays on the SADAD Pay payment page
PriceFree

Before you start

  • You have access to your WHMCS server files (FTP, SFTP or a file manager) and to the WHMCS admin area.
  • You have your Client Key and Client Secret from the SADAD Pay portal, under Profile → Update Profile → API. If they are not there, email [email protected] to enable API access.
  • Download the module .zip file from the WHMCS Marketplace.

Step 1: Upload the module

  1. Unzip the module file on your computer.
  2. Upload its contents into your WHMCS root folder, keeping the folder structure. The files go into modules/gateways/.

Step 2: Activate and configure the gateway

  1. In the WHMCS admin area, go to Setup → Payment Gateways (in WHMCS 8: System Settings → Payment Gateways).
  2. Open the All Payment Gateways tab and click Sadad Payment to activate it.
  3. In the Manage Existing Gateways tab, find Sadad Payment.
  4. Tick Show on Order Form and Enable/Disable. Optional: change the Display Name customers see.
  5. Enter your Client Key and Client Secret.
  6. To test first, tick Test mode and use your Sandbox keys. For real payments, untick it and use your Live keys.
  7. Click Save Changes.
2308

The Sadad Payment gateway settings in WHMCS, with the Return/Failed URL to add in the SADAD Pay portal.

Step 3: Set the return URLs

The WHMCS module uses one URL for both successful and failed payments.

  1. In the Sadad Payment gateway settings in WHMCS, copy the Return/Failed URL.
  2. Log in to the SADAD Pay portal and go to Profile → Update Profile → API.
  3. Paste the URL into both Success URL and Fail URL, and click Update.

🚧

One set of return URLs per account

The Success and Fail URLs in the portal apply to your whole SADAD Pay account. If you also use SADAD Pay on another website with the same account, contact [email protected] first.

Step 4: Test a payment

  1. Create a test invoice for a client in WHMCS, or log in to the client area as a test client.
  2. Open the invoice, choose Sadad Payment and click Pay Now.
  3. On the SADAD Pay payment page, pay with a test card.
  4. You return to the WHMCS invoice, which is now Paid. The transaction appears under Billing → Transactions List.

Step 5: Go live

  1. In the gateway settings, turn off the test option.
  2. Replace the keys with your Live Client Key and Client Secret, and save.
  3. Set the Success and Fail URLs in your Live SADAD Pay portal as well.
  4. Pay one small real invoice to check everything works.

See the Go-Live Checklist.

Refunds

Refund the payment in the SADAD Pay portal under Invoices. See Refunds. Then record the refund in WHMCS on the invoice's Refund tab, choosing to record it only (not to send it through the gateway).

Troubleshooting

ProblemWhat to check
Sadad Payment is not in All Payment GatewaysCheck that the files were uploaded to modules/gateways/ with the folder structure kept.
An error when the client clicks Pay NowThe Client Key or Client Secret is wrong, or does not match the test option.
The client pays but the invoice stays UnpaidCheck that the Success URL and Fail URL in the SADAD Pay portal are exactly the URL from the WHMCS gateway settings.
Paid invoices of another website stop updatingBoth websites share the same return URLs. See the note in Step 3.

Next steps