for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package stubs
// BillsCreateDStvPaymentResponse is a dummy JSOn response for checking a dstv user
func BillsCreateDStvPaymentResponse() string {
return `
{
"status": "success",
"message": "Bill payment successful",
"data": {
"phone_number": "+23490803840303",
"amount": 500,
"network": "9MOBILE",
"flw_ref": "CF-FLYAPI-20200311081921359990",
"tx_ref": "BPUSSD1583957963415840"
}
`
// BillsValidateDstvResponse is a dummy response for validating a DStv payment
func BillsValidateDstvResponse() string {
"message": "Item validated successfully",
"response_code": "00",
"address": null,
"response_message": "Successful",
"name": "MTN",
"biller_code": "BIL099",
"customer": "08038291822",
"product_code": "AT099",
"email": null,
"fee": 100,
"maximum": 0,
"minimum": 0
// BillsGetStatusVerboseResponse is a dummy response of a verbose bill status
func BillsGetStatusVerboseResponse() string {
"message": "Bill status fetch successful",
"currency": "NGN",
"customer_id": "+23490803840303",
"frequency": "One Time",
"amount": "500.0000",
"product": "AIRTIME",
"product_name": "9MOBILE",
"commission": 10,
"transaction_date": "2020-03-11T20:19:21.27Z",
"country": "NG",
"tx_ref": "CF-FLYAPI-20200311081921359990",
"extra": null,
"product_details": "FLY-API-NG-AIRTIME-9MOBILE",
"status": "successful"