Repository navigation
feat(messaging): REGISTER, ONBOARD, UPDATE WhatsApp commands - #3
Merged
Merged
Conversation
Merchants can now complete the full onboarding flow from WhatsApp:
REGISTER <business name> — create merchant account
ONBOARD <account> <bankcode> — verify bank account, create Paystack
subaccount, activate merchant
UPDATE <account> <bankcode> — change payout account (Rule 5 cooling-off,
immediate notification, reply CANCEL to abort)
Unregistered senders now receive the REGISTER prompt instead of a
generic 'contact support' message.
USAGE_MESSAGE updated to list all available commands.
DevSolex
approved these changes
Sep 27, 2026
DevSolex
left a comment
Owner
There was a problem hiding this comment.
Reviewed and approved.
REGISTER/ONBOARD/UPDATE parsers are clean with proper validation (10-digit account number, numeric bank code, 200-char business name limit). REGISTER correctly handled before merchant resolution so unregistered senders can onboard. UPDATE correctly uses the existing Rule 5 cooling-off path. All inline Paystack calls follow the same pattern as the onboarding endpoint. USAGE_MESSAGE updated. 105 tests passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merchants can now complete the full onboarding flow directly from WhatsApp — no API calls or SQL inserts required.
New commands
REGISTER <business name>ONBOARD <account number> <bank code>UPDATE <account number> <bank code>CANCEL/STOPPAY <amount> <description>Flow
REGISTER Adaeze Fashion Store→ account createdONBOARD 0123456789 058→ Paystack verifies bank, creates subaccount, merchant activatedPAY 750 Ankara fabric x2→ gets checkout URLUPDATE 9876543210 033→ 48h cooling-off, replyCANCELto abortDetails
Tests
105 passing, 0 failures.