Skip to content

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

Description

@ArmarJosh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions