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

RequestToPay not throwing an error in case of unaccepted characters in the payerMessage and payeeNote #84

Open
ArmarJosh opened this issue May 25, 2023 · 0 comments

Comments

@ArmarJosh
Copy link

Describe the bug
RequestToPay returns the transaction id, but does not throw an error in case mtn has not returned 200 ok. If the payerMessage and payeeNote includes unaccepted characters such as "&" ampersand, the telco rejects the transaction and returns an error, but the sdk does not capture it. Hence just throw ResourceNotFoundError on getTransaction.

To Reproduce
Steps to reproduce the behavior:

  1. include "&" in the payerMessage and payeeNote.
  2. Not sure what other characters the mtn api does not support. Hence should include character sanitization

Expected behavior
Should return an error in case the telco does not return a 200 status on RequestToPay

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

No branches or pull requests

1 participant