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
[hacktoberfest] feat: Implement mobile money payout api #39
Conversation
momoCodes?.data?.map((momoCode) => ( | ||
<option | ||
key={`${momoCode.name}-${momoCode.code}`} | ||
value={momoCode.code} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users don't understand what the codes are. Could you use the name of the service instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted
return | ||
} | ||
|
||
if (paymentData.phoneNumber.length === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider validating the phone number using a regex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted
className={`${error.length === 0 ? 'mt-8' : 'mt-2'} px-12 py-2 border shadow-sm text-white rounded-xl | ||
font-semibold bg-purple-500 hover:border-purple-500 tracking-wider | ||
hover:bg-purple-50 hover:text-purple-500 hover:scale-95 transition-all`}> | ||
PAY NOW |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are they paying? Or Sending, Transferring, Gifting or something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are paying into a momo account.
Hi @uchibeke please let me know if there's anymore changes to be made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Thanks! |
This PR implements the mobile money api from the issue #2 in a simple React app.
See README for more info