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

[hacktoberfest] feat: Implement mobile money payout api #39

Merged
merged 11 commits into from Oct 14, 2022

Conversation

ezechuka
Copy link

@ezechuka ezechuka commented Oct 8, 2022

This PR implements the mobile money api from the issue #2 in a simple React app.
See README for more info
desktop-preview

momoCodes?.data?.map((momoCode) => (
<option
key={`${momoCode.name}-${momoCode.code}`}
value={momoCode.code}
Copy link
Contributor

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?

Copy link
Author

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) {
Copy link
Contributor

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

Copy link
Author

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
Copy link
Contributor

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?

Copy link
Author

@ezechuka ezechuka Oct 11, 2022

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.

@uchibeke uchibeke added hacktoberfest Hacktoberfest issues API labels Oct 11, 2022
@ezechuka
Copy link
Author

Hi @uchibeke please let me know if there's anymore changes to be made.

Copy link
Contributor

@uchibeke uchibeke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@uchibeke uchibeke merged commit a5431cf into Chimoney:main Oct 14, 2022
@ezechuka
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API hacktoberfest Hacktoberfest issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants