Skip to main content
Question

API payment failed.

  • November 25, 2024
  • 8 replies
  • 140 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
  • November 26, 2024

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


  • Community Manager
  • November 28, 2024

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


  • Author
  • Active
  • December 2, 2024

@leontymo 

Thanks for this suggestion.

I will try to implement it and see what happens.


  • Author
  • Active
  • December 2, 2024

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

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

TO: net::ERR_TIMED_OUT

 

 


  • Author
  • Active
  • December 2, 2024

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
  • December 2, 2024

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


  • Community Manager
  • December 2, 2024

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

 

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

 

 


  • Author
  • Active
  • December 2, 2024

Thanks ​@leontymo