Skip to main content
Question

API payment failed.

  • Nov 25, 2024 11:39 AM UTC
  • 8 replies
  • 261 views

I have the following error when trying to setup the MoMo API integration.

{"externalId":"100013","amount":"1700","currency":"XAF","payer":{"partyIdType":"MSISDN","partyId":"237672277745"},"payerMessage":"Test Message","payeeNote":"Test Note","status":"FAILED","reason":"VALIDATION_ERROR"}"

status":"FAILED","reason":"VALIDATION_ERROR"

And we are using X-Target-Environment as mtncameroon

Can you please help and tell me what to do here?

 

Thanks in advace!

8 replies

  • Author
  • Active
  • Nov 26, 2024 9:07 AM UTC

Is there any way to contact the MTN-MoMo support department?


  • Community Manager
  • Nov 28, 2024 12:46 PM UTC

Your request might have decimals e.g 1700.00, try sending the amount without the decimals it might be issue (i.e 1700)


​@leontymo 

Thanks for this suggestion.

I will try to implement it and see what happens.


​@leontymo #Anyhelp I am now getting the attached error.

FROM: "status":"FAILED","reason":"VALIDATION_ERROR"

TO: net::ERR_TIMED_OUT

 

 


I am currently using a subdomain https://admin.foozila.com for the callback.

Do I need to remove the subdomain from the callback URL and use only the domain name (https://foozila.com)?

Can the callback URL be a wildcard on the domain name? Am asking this because I can’t find any information on how the callback URL should look like.

It took me less than 10 minutes to integrate my app with Stripe but MoMo API integration is fast becoming a nightmare. :(


  • Community Manager
  • Dec 2, 2024 5:41 PM UTC

That's an error specific to your application and not. MoMo related. Your endpoint seems to be taking long to respond 


  • Community Manager
  • Dec 2, 2024 5:44 PM UTC

Regarding the callback you can check this video has a good step by step

 

https://youtu.be/ig95nhKgInI?si=D_HImPJrcYCvI-XM

 

 


Thanks ​@leontymo