Skip to content

Commit 8842b07

Browse files
committed
feat: (docs) added User Stories
Signed-off-by: rafaeljohn9 <[email protected]>
1 parent 28cba6e commit 8842b07

File tree

12 files changed

+96
-0
lines changed

12 files changed

+96
-0
lines changed

docs/docs/account-balance.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ import Tabs from '@site/docs/components/Tabs';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Story" size="small" subtitle="Who can use this service" />
19+
20+
As a finance or operations user, I want to query my organization's M-Pesa account balance so I can reconcile payments and spot problems quickly.
21+
22+
- Finance analyst: runs balance checks and reconciliation reports.
23+
- Till manager / cashier: monitors till balances and requests top-ups when low.
24+
- Backend system / automation: polls balances regularly and creates alerts or workflows on anomalies.
25+
1826
<Alert type="info" title="What this page covers">
1927
This guide documents the Account Balance flow: how to construct queries, expected acknowledgement responses, how to parse ResultURL callbacks (final balances) and QueueTimeOutURL notifications, and important validation/safety checks to implement on your side.
2028
</Alert>

docs/docs/b2c-account-top-up.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Stories" size="small" />
19+
20+
- As a fintech product owner, I want to programmatically top up business accounts so that merchants receive funds immediately after customer payments.
21+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
22+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
23+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
24+
1825
<SectionHeader title="Parameters Definition" size="small" />
1926

2027
<ParametersTable

docs/docs/b2c.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Stories" size="small" />
19+
20+
- As a fintech product owner, I want to programmatically initiate B2C payouts so that customers receive funds immediately after approval.
21+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
22+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
23+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
24+
1825
<SectionHeader title="Parameters Definition" size="small" />
1926

2027
<ParametersTable

docs/docs/business-buygoods.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Stories" size="small" />
19+
20+
- As a fintech product owner, I want to programmatically initiate B2B payments so that suppliers receive funds immediately after approval.
21+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
22+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
23+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
24+
1825
<SectionHeader title="Parameters Definition" size="small" />
1926

2027
<ParametersTable

docs/docs/business-paybill.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Stories" size="small" />
19+
20+
- As a fintech product owner, I want to programmatically initiate B2B payments so that suppliers receive funds immediately after approval.
21+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
22+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
23+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
24+
1825
<SectionHeader title="Parameters Definition" size="small" />
1926

2027
<ParametersTable

docs/docs/c2b.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1919
NB: C2B Transaction Validation is an optional feature that needs to be activated on M-Pesa. The owner of the shortcode must request activation by emailing [email protected] or [email protected] if they need their transactions validated before execution.
2020
</Alert>
2121

22+
<SectionHeader title="User Stories" size="small" />
23+
24+
- As a fintech product owner, I want to programmatically manage C2B payments so that customers receive funds immediately after approval.
25+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
26+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
27+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
28+
29+
2230
<SectionHeader title="Parameters Definition" size="small" />
2331

2432
<ParametersTable

docs/docs/dynamic-qr.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1919
size="large"
2020
/>
2121

22+
<SectionHeader title="User Stories" size="small" />
23+
24+
- As a fintech product owner, I want to programmatically generate dynamic QR codes so that customers can easily make payments.
25+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
26+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
27+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
28+
2229
<SectionHeader title="Parameters" size="small" />
2330

2431
<ParametersTable

docs/docs/mpesa-express/stk-push.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1414
gradient={true}
1515
size="large"
1616
/>
17+
<SectionHeader title="User Story" size="small" />
18+
19+
<p>
20+
As an e‑commerce merchant, I want to prompt customers to approve payments on their phones so they can complete purchases quickly and securely using M‑Pesa STK Push. When a customer checks out, my backend triggers an STK Push request; the customer receives a prompt to enter their M‑Pesa PIN; once the payment is confirmed via the webhook callback, the order is processed.
21+
</p>
22+
23+
<ul>
24+
<li><strong>Actors:</strong> Merchant, Customer, Developer (integrator)</li>
25+
<li><strong>When:</strong> At checkout or when accepting a customer-initiated payment</li>
26+
<li><strong>Why:</strong> Fast, secure, and familiar payment flow for users with M‑Pesa</li>
27+
<li><strong>Outcome:</strong> Customer authorizes payment on their phone; merchant receives confirmation through the callback and completes the order.</li>
28+
</ul>
29+
1730

1831
<SectionHeader title="Parameters Definition" size="small" />
1932

docs/docs/mpesa-express/stk-query.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import Alert from '@site/docs/components/Alert';
99
import Tabs from '@site/docs/components/Tabs';
1010
import ParametersTable from '@site/docs/components/ParametersTable';
1111

12+
<SectionHeader title="User stories" size="small" />
13+
14+
- As an online merchant, I want customers to pay with M-Pesa STK Push so they can pay on their phones without leaving my site or app.
15+
- As a developer, I want to start an STK Push and check its status so I can update orders even if callbacks are late or missing.
16+
- As a support agent, I want to look up STK Push results to troubleshoot problems and confirm payments before issuing refunds or fulfilling orders.
17+
1218

1319
<SectionHeader title="Parameters" size="small" />
1420

docs/docs/reversal.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ import ParametersTable from '@site/docs/components/ParametersTable';
1515
size="large"
1616
/>
1717

18+
<SectionHeader title="User Stories" size="small" />
19+
20+
- As a fintech product owner, I want to programmatically reverse M-Pesa transactions so that I can handle customer requests efficiently.
21+
- As an integrations developer, I want a simple client and clear webhook callbacks so I can implement reliable end-to-end flows with minimal boilerplate.
22+
- As a billing operations engineer, I want result and timeout notifications with acknowledgements so I can reconcile transactions and trigger retries or alerts when needed.
23+
- As a reseller partner, I want a tested SDK and examples so I can onboard quickly and reduce integration defects.
24+
1825
<SectionHeader title="Parameters Definition" size="small" />
1926

2027
<ParametersTable

0 commit comments

Comments
 (0)