-
Notifications
You must be signed in to change notification settings - Fork 1
/
consts.go
18 lines (17 loc) · 1.81 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package darajago
const (
baseUrlSandbox = "https://sandbox.safaricom.co.ke"
baseUrlLive = "https://api.safaricom.co.ke"
endpointAuth = "/oauth/v1/generate?grant_type=client_credentials" // The endpoint for generating an access token
endpointReversal = "/mpesa/reversal/v1/request" // The endpoint for reversing a transaction
endpointB2BReq = "/mpesa/b2b/v1/paymentrequest" // The endpoint for making a B2B payment request
endpointTxStatus = "/mpesa/transactionstatus/v1/query" // The endpoint for querying a transaction status
endpointSimulatePmtC2B = "/mpesa/c2b/v1/simulate" // The endpoint for simulating a C2BSimulation transaction
endpointSimulatePmtC2BV2 = "/mpesa/c2b/v2/simulate" // The endpoint for simulating a C2BSimulation transaction
endpointQueryLipanaMpesa = "/mpesa/stkpushquery/v1/query" // The endpoint for querying a Lipa Na Mpesa transaction
endpointB2CPmtReq = "/mpesa/b2c/v1/paymentrequest" // The endpoint for making a B2C payment request
endpointAccountBalance = "/mpesa/accountbalance/v1/query" // The endpoint for querying an M-Pesa account balance
endpointRegisterConfirmValidation = "/mpesa/c2b/v1/registerurl" // The endpoint for confirming a C2BSimulation transaction
endpointLipaNaMpesa = "/mpesa/stkpush/v1/processrequest" // The endpoint for initiating a Lipa Na Mpesa transaction
endpointQrCode = "/mpesa/qrcode/v1/generate" // The endpoint for generating a QR code
)