|
1
|
|
|
package stubs |
|
2
|
|
|
|
|
3
|
|
|
// AirtimePaymentResponse returns a stubbed response for Airtime payment |
|
4
|
|
|
func AirtimePaymentResponse() []byte { |
|
5
|
|
|
return []byte(` |
|
6
|
|
|
{ |
|
7
|
|
|
"code": 200, |
|
8
|
|
|
"message": "success", |
|
9
|
|
|
"result": { |
|
10
|
|
|
"acceptNotificationUrl": null, |
|
11
|
|
|
"acceptUrl": null, |
|
12
|
|
|
"accountName": "uname", |
|
13
|
|
|
"accountNumber": "4831069263065402", |
|
14
|
|
|
"adminValidaterUsername": null, |
|
15
|
|
|
"amount": 1000, |
|
16
|
|
|
"bankAccountId": null, |
|
17
|
|
|
"callbackUrl": "https://mp9097f0b0590e076c79.free.beeceptor.com/callback", |
|
18
|
|
|
"cancelNotificationUrl": null, |
|
19
|
|
|
"cancelUrl": null, |
|
20
|
|
|
"code": null, |
|
21
|
|
|
"commissionId": "000000033765", |
|
22
|
|
|
"data": null, |
|
23
|
|
|
"date": "2025-12-03 13:19:44", |
|
24
|
|
|
"declineNotificationUrl": null, |
|
25
|
|
|
"declineUrl": null, |
|
26
|
|
|
"description": "Orange Airtime Purchase", |
|
27
|
|
|
"email": "[email protected]", |
|
28
|
|
|
"errorCode": null, |
|
29
|
|
|
"errorMessage": null, |
|
30
|
|
|
"errorType": null, |
|
31
|
|
|
"externalId": "224169cd-caa6-46d3-8262-eb95adb6b1d9", |
|
32
|
|
|
"financialCommission": 50, |
|
33
|
|
|
"financialFees": 0, |
|
34
|
|
|
"financialId": "000000033764", |
|
35
|
|
|
"ipAddress": "169.254.169.126", |
|
36
|
|
|
"isWalletPayment": false, |
|
37
|
|
|
"noFees": null, |
|
38
|
|
|
"notificationUrl": null, |
|
39
|
|
|
"optionSlug": null, |
|
40
|
|
|
"paymentLink": null, |
|
41
|
|
|
"paymentServiceFeature": null, |
|
42
|
|
|
"paymentWallet": null, |
|
43
|
|
|
"phone": "237689120974", |
|
44
|
|
|
"providerFees": 0, |
|
45
|
|
|
"providerId": "R910452.6263.2358", |
|
46
|
|
|
"reason": null, |
|
47
|
|
|
"reference": null, |
|
48
|
|
|
"referenceNumber": "659683157", |
|
49
|
|
|
"requestId": "1850493358573419", |
|
50
|
|
|
"requestStatus": "SUCCESS", |
|
51
|
|
|
"rollbackId": null, |
|
52
|
|
|
"service": "orange-airtime-service-feature", |
|
53
|
|
|
"serviceName": null, |
|
54
|
|
|
"signature": null, |
|
55
|
|
|
"status": "SUCCESS", |
|
56
|
|
|
"terminalId": 1831267794013435, |
|
57
|
|
|
"terminalName": "uname (api)", |
|
58
|
|
|
"terminalUserAgent": "Go-http-client/1.1", |
|
59
|
|
|
"transactionId": 1850493354204578, |
|
60
|
|
|
"type": "payment", |
|
61
|
|
|
"username": "uname", |
|
62
|
|
|
"voucher": { |
|
63
|
|
|
"value": "659683157, 1000" |
|
64
|
|
|
} |
|
65
|
|
|
} |
|
66
|
|
|
} |
|
67
|
|
|
`) |
|
68
|
|
|
} |
|
69
|
|
|
|