Issue 1: Cannot Create New Pre-Approval After Expiry
Description:
After a pre-approval mandate expires, attempts to create a new pre-approval for the same MSISDN consistently fail.
Steps to Reproduce:
Create a pre-approval mandate for an MSISDN.
Allow the pre-approval to expire.
Attempt to create a new pre-approval mandate for the same MSISDN.
Actual Result:
The request fails with the following response:
{
"message": "Preapproval already exist and is in pending state",
"code": "PREAPPROVAL_EXIST_PENDING"
}
Despite this, the MSISDN holder still receives an STK Push to approve the transaction,when a normal request to pay is initiated on the MSISDN which suggests the previous pre-approval is no longer active.
Expected Result:
Once a pre-approval has expired, the system should allow the creation of a new pre-approval mandate for the same MSISDN.
Issue 2: Get Approved Pre-Approvals Endpoint Not Supported
Description:
The Get Approved Pre-Approvals API is not supported in the Ghana target environment.
Steps to Reproduce:
Call the Get Approved Pre-Approvals endpoint in the Ghana environment.
Actual Result:
The request fails with:
{
"message": "Not supported in target environment",
"code": "NOT_SUPPORTED_IN_TARGET_ENVIRONMENT"
}
Expected Result:
The endpoint should be supported, or an alternative mechanism should be provided to retrieve approved pre-approval mandates.
Impact:
Blocks merchants from re-establishing pre-approval mandates after expiry.Prevents programmatic verification of approved pre-approvals in Ghana.