-
Notifications
You must be signed in to change notification settings - Fork 15
Nedbank
This page contains information about configuring the Nedbank FSP integration in a 121 Platform Instance.
For the Nedbank FSP integration to work for any program, some settings need to be configured via environment variables:
NEDBANK_ACCOUNT_NUMBER
The value is the account number used for the Nedbank integration.
NEDBANK_CLIENT_ID
The value is the client secret provided by Nedbank.
NEDBANK_API_URL
The value is the base URL of Nedbank's API. The sandbox URL is https://b2b-api.nedbank.co.za/apimarket/b2b-sb/
. In production and staging, a different URL is used.
NEDBANK_CERTIFICATE_PATH
The value is the location of the TLS certificate needed for the connection to work. Nedbank provides this certificate.
NEDBANK_CERTIFICATE_PASSWORD
The value is the password for the TLS certificate.
When a payment is made to a registration with a Nedbank FSP, 'Nedbank Vouchers' are created. These vouchers are represented by a code that is sent via text to the registrations, who can redeem the money at 'cash points'.
After a payment is made in the 121 platform, transactions are created with the status 'waiting' (indicating that the registration still needs to pick up the money). In a nightly cronjob, the latest status of the Nedbank Voucher is retrieved (see the mapping below) and the transaction status is updated accordingly. The updating of voucher status can also be manually triggered by calling: /api/financial-service-providers/nedbank
.
Nedbank voucher statuses can be exported with the 'payment export'.
This table maps the NedbankVoucherStatus
to the corresponding TransactionStatusEnum
in the system.
Nedbank Voucher Status | Transaction Status |
---|---|
PENDING | waiting |
PROCESSING | waiting |
REDEEMABLE | waiting |
REDEEMED | success |
REFUNDED | error |
FAILED | error |
For more information about Nedbank's API used, see the Nedbank CashOut API documentation on Nedbank's website.
For payments made through Nedbank, a paymentReferencePrefix
must be configured via Program FSP Configurations. This prefix appears on bank statements and must meet Nedbank’s requirements.
The client must provide a paymentReferencePrefix
, which needs to be configured for every program that uses the Nedbank FSP integration.
To configure the paymentReferencePrefix
for a specific program, use the following API call:
POST api/programs/{programId}/financial-service-provider-configurations/{configuration-name}/properties
With the payload:
{
"name": "paymentReferencePrefix",
"value": "[paymentReferencePrefix]"
}
Replace [paymentReferencePrefix] with the value provided by the client.
Key Considerations:
- The prefix must contain only letters, numbers, and hyphens (-); other characters are removed.
- The final payment reference is a combination of the sanitized prefix (max 18 characters) and the recipient’s phone number.