|
1
|
|
|
package stubs |
|
2
|
|
|
|
|
3
|
|
|
// ENEOPrepaidResponse returns a stubbed response for Eneo Prepaid payment |
|
4
|
|
|
func ENEOPrepaidResponse() []byte { |
|
5
|
|
|
return []byte(` |
|
6
|
|
|
{ |
|
7
|
|
|
"code": 200, |
|
8
|
|
|
"message": "success", |
|
9
|
|
|
"result": { |
|
10
|
|
|
"acceptUrl": null, |
|
11
|
|
|
"accountName": "uname", |
|
12
|
|
|
"accountNumber": "4831069263065402", |
|
13
|
|
|
"amount": 2000, |
|
14
|
|
|
"callbackUrl": null, |
|
15
|
|
|
"cancelUrl": null, |
|
16
|
|
|
"code": null, |
|
17
|
|
|
"commissionId": "000000028199", |
|
18
|
|
|
"data": null, |
|
19
|
|
|
"date": "2025-06-11 15:03:04", |
|
20
|
|
|
"declineUrl": null, |
|
21
|
|
|
"description": "Eneo Prepay (2,000 FCFA)", |
|
22
|
|
|
"email": "[email protected]", |
|
23
|
|
|
"errorCode": null, |
|
24
|
|
|
"errorMessage": null, |
|
25
|
|
|
"errorType": null, |
|
26
|
|
|
"externalId": "192435768705", |
|
27
|
|
|
"financialCommission": 50, |
|
28
|
|
|
"financialFees": 100, |
|
29
|
|
|
"financialId": "000000028198", |
|
30
|
|
|
"ipAddress": "169.254.169.126", |
|
31
|
|
|
"noFees": false, |
|
32
|
|
|
"optionSlug": null, |
|
33
|
|
|
"paymentLink": null, |
|
34
|
|
|
"paymentServiceFeature": null, |
|
35
|
|
|
"paymentWallet": null, |
|
36
|
|
|
"phone": "673658376", |
|
37
|
|
|
"providerFees": 0, |
|
38
|
|
|
"providerId": "536675", |
|
39
|
|
|
"reference": { |
|
40
|
|
|
"accNo": "32157201968850643497", |
|
41
|
|
|
"adress": "Rue Xbza", |
|
42
|
|
|
"amount": 2000, |
|
43
|
|
|
"at": "42", |
|
44
|
|
|
"callbackUrl": null, |
|
45
|
|
|
"contact": "698846362", |
|
46
|
|
|
"date": "2025-06-11 15:03:08", |
|
47
|
|
|
"dateTime": "11062025150308", |
|
48
|
|
|
"errorCode": null, |
|
49
|
|
|
"errorMessage": null, |
|
50
|
|
|
"errorType": null, |
|
51
|
|
|
"expirationDate": null, |
|
52
|
|
|
"generationDate": null, |
|
53
|
|
|
"krn": "9", |
|
54
|
|
|
"name": "Michele Stoval", |
|
55
|
|
|
"options": null, |
|
56
|
|
|
"providerCode": 161661, |
|
57
|
|
|
"providerMessage": null, |
|
58
|
|
|
"providerStatus": null, |
|
59
|
|
|
"referenceId": 161661, |
|
60
|
|
|
"referenceNumber": "192435768705", |
|
61
|
|
|
"reflocal": "Eneo", |
|
62
|
|
|
"sgc": "534286", |
|
63
|
|
|
"status": "PAYED", |
|
64
|
|
|
"ti": "70", |
|
65
|
|
|
"token": "8844-9878-2415-5207-7373", |
|
66
|
|
|
"tt": "23", |
|
67
|
|
|
"voucher": { |
|
68
|
|
|
"accNo": "32157201968850643497", |
|
69
|
|
|
"adress": "Rue Xbza", |
|
70
|
|
|
"at": "42", |
|
71
|
|
|
"contact": "698846362", |
|
72
|
|
|
"dateTime": "11062025150308", |
|
73
|
|
|
"krn": "9", |
|
74
|
|
|
"reflocal": "Eneo", |
|
75
|
|
|
"sgc": "534286", |
|
76
|
|
|
"ti": "70", |
|
77
|
|
|
"token": "8844-9878-2415-5207-7373", |
|
78
|
|
|
"tt": "23" |
|
79
|
|
|
} |
|
80
|
|
|
}, |
|
81
|
|
|
"referenceNumber": "192435768705", |
|
82
|
|
|
"requestId": "536675", |
|
83
|
|
|
"requestStatus": "SUCCESS", |
|
84
|
|
|
"rollbackId": null, |
|
85
|
|
|
"service": "eneo-prepaid-bill-service-feature", |
|
86
|
|
|
"serviceName": null, |
|
87
|
|
|
"signature": null, |
|
88
|
|
|
"status": "SUCCESS", |
|
89
|
|
|
"terminalId": 1831267794013435, |
|
90
|
|
|
"terminalName": "uname (api)", |
|
91
|
|
|
"terminalUserAgent": "Go-http-client/1.1", |
|
92
|
|
|
"transactionId": 1834645386005511, |
|
93
|
|
|
"type": "payment", |
|
94
|
|
|
"username": "uname", |
|
95
|
|
|
"voucher": { |
|
96
|
|
|
"accNumber": "32157201968850643497", |
|
97
|
|
|
"amountDebt": 0, |
|
98
|
|
|
"amountTender": 1000, |
|
99
|
|
|
"balanceDebt": 0, |
|
100
|
|
|
"contactNno": "698846362", |
|
101
|
|
|
"dateTime": "11062025150309", |
|
102
|
|
|
"daysLastPurchase": null, |
|
103
|
|
|
"lessRound": 1005.38, |
|
104
|
|
|
"receiptNo": "000000028798463", |
|
105
|
|
|
"statusDateTime": null, |
|
106
|
|
|
"statusUniqueNumber": null, |
|
107
|
|
|
"token": "8844-9878-2415-5207-7373", |
|
108
|
|
|
"valeurKwh": "7.6", |
|
109
|
|
|
"value": "Michele Stoval, 8844-9878-2415-5207-7373" |
|
110
|
|
|
} |
|
111
|
|
|
} |
|
112
|
|
|
}`) |
|
113
|
|
|
} |
|
114
|
|
|
|