Loan repayment
Cash payment
sequenceDiagram
actor F as Borrower
actor MC as Originator agent
participant AT as USSD provider
participant GPS as Growr Payment service
participant GLS as Growr Loan service
F->>MC: Pay loan instalment in cash
MC->>+AT: Enter phone number and amount
AT->>+GPS: Request payment code
GPS->>GPS: Generate payment code
GPS->>-F: Send payment code
alt Agent confirms the code
F->>MC: Dictate the code
MC->>+AT: Enter the code
else Borrower confirms the code
F->>+AT: Enter the code
end
AT->>-GPS: Provide the code
activate GPS
GPS->>+GLS: Confirm loan payment
GLS->>GLS: Update loan
GLS->>-GPS: Confirm subscription update
GPS-->>-F:Send SMS notification
Process steps:
- An originator agent visits a borrower and reminds him/her about an upcoming loan payment. The borrower pays the amount in cash to the agent.
- The agent registers the payment by entering the borrower’s phone number and the paid amount through a specific USSD menu.
- The USSD provider sends the request to the Growr Payment service.
- Growr Payment service generates a unique OTP code for the respective loan payment.
- Growr Payment service sends an SMS with the OTP code to the borrower.
- The borrower dictates the code to the agent.
- The agent enters the code to verify the transaction.
- Alternatively, the borrower enters the code by himself.
- The USSD provider sends the confirmed code to the Growr Payment service.
- Growr Payment service verifies the code and asserts the payment in front of the Growr Loan service.
- Growr Loan service registers the payment event and updates the loan - respectively increasing the paid amount and decreasing the due amount.
- Growr Loan service returns a confirmation to the Growr Payment service.
- Growr Payment service sends an SMS notification to the borrower.
Mobile payment
sequenceDiagram
actor F as Borrower
participant AT as USSD provider
participant MPP as Mobile payment provider
participant GPS as Growr Payment service
participant GLS as Growr Loan service
F->>+AT: Initiate a payment
AT->>+GPS: Request payment code
GPS->>GPS: Generate payment code
GPS->>-F: Return payment code
F->>+MPP: Make a payment
MPP-->>-GPS: Notify for payment
activate GPS
GPS->>GPS: Verify payment code
GPS->>GLS: Confirm payment
activate GLS
GLS->>GLS: Update loan
GLS->>-GPS: Confirm loan update
GPS-->>-F: Send SMS notification
Process steps:
- According to the loan repayment schedule, a borrower initiates a payment request from the respective USSD menu.
- The USSD provider sends the request to the Growr Payment service.
- Growr Payment service generates a unique code (with a predefined prefix) for the respective loan payment.
- Growr Payment service sends an SMS with the payment code to the borrower.
- Using the provided code, the borrower makes a payment using his Mobile Money wallet.
- The Mobile payment provider detects a payment with the given prefix and notifies Growr Payment service about the transaction.
- Growr Payment service verifies the payment code from the transaction.
- Growr Payment service asserts the payment in front of the Growr Loan service.
- Growr Loan service registers the payment event and updates the loan.
- Growr Loan service returns a confirmation to the Growr Payment service.
- Growr Payment service sends an SMS notification to the borrower.
Onchain payment
In progress