Collect For Payment
GovBill supports MDAs that remit/settle to URA the ability to collect funds (using the available methods) and directly use said funds to do PRN payments.
Last updated
GovBill supports MDAs that remit/settle to URA the ability to collect funds (using the available methods) and directly use said funds to do PRN payments.
Last updated
The request takes the PRN to be paid for as a mandatory parameter. The requesting merchant account chooses which transaction method to work with; or as described in the respective sections and as part of the request payload, the prn parameter is added.
The GovBill platform will go ahead to process the funds collection and when successful, it will automatically proceed to make the PRN payment and execute a second webhook for the PRN payment confirmation. However, in the event the PRN is not eligible to payment (invalid, already paid, expired etc), the merchant account will be notified via callback even before the collection process happens. The merchant account account required to have profiled a service payments callback URL as this will be the URL notified for everything regarding PRN payment.
Majority of the parameters depend on the method one decides to use for the collection and in addition, the PRN parameter is included and described in the table below;
prn
String
true
The PRN to be paid for on completion of this transaction
After collecting the necessary collection information from your customer, prepare your request payload as demonstrated below. Two (mobile money and card) sample payloads are shared
POST
https://gwapisdbx.govbill.ug/v1/collections/collect-for-payment
The request is sent as a JSON body as demonstrated by the sample request below. Sample responses (acknowledgement and failure) are also shared.
If the collection happened successfully, the GovBill platform automatically proceeds to make the PRN payment using the collected funds. When the PRN payment is successful, a confirmation webhook will be sent to the designated service payment callback URL. The callback structure is as shared below. The paid PRN would be in the account_number parameter of the callback payload.