Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User story-11: As a potential user using choronko will like to register with the PowerPay system #7

Open
stephane-segning opened this issue Mar 1, 2024 · 0 comments

Comments

@stephane-segning
Copy link
Contributor

stephane-segning commented Mar 1, 2024

Description: As a potential user using choronko will like to register with the PowerPay system

Sequence Diagram

sequenceDiagram
participant u as User
participant c as Choronko
participant sg as sms gateway
participant pps as PowerPay service
u->>c:input(number and username)
c->>sg:forwarding sms(number and username)
sg->>pps: send sms(number and username)
pps->>pps: check number 
pps-->>sg: sms(OTP and request for PIN)
sg-->>c:forwarding sms(OTP and request for PIN)
c-->>u:sms(OTP and request for PIN)
u->>sg:sms(OTP and PIN)
sg->>pps:forwarding sms(OTP and request for PIN)
pps->>pps:check OPT and PIN
pps-->>sg:ok(success message)
sg-->>c:ok(success message)
c-->>u:display sms(success message)
Loading

Wireframe

Image

Tickets

  • Validate user input: Extract user data(username and number) and store in the database.
  • Implement Request response mechanism: For each request to a destination there should be an expected response from that destination.
  • Implement error handling and validation: Provide corresponding messages to events.
  • Implement validateUserRegistration(pin, id):
    • Validate PIN and OTP: validate the PIN and the OTP and store the PIN in the corresponding location with user data in the database.
  • Implement register(phoneNumber):
    • Implement sms reponse to user input: Send sms to user number containing OPT and a request for a PIN.

Implementation:

@stephane-segning stephane-segning converted this from a draft issue Mar 1, 2024
@stephane-segning stephane-segning moved this from Backlog to Todo in Payment App Mar 1, 2024
@stephane-segning stephane-segning moved this from Todo to Ready in Payment App Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready
Development

No branches or pull requests

1 participant