laravel-mtn-momo icon indicating copy to clipboard operation
laravel-mtn-momo copied to clipboard

PayerMessage and PayeeNote are required.

Open mtvbrianking opened this issue 3 years ago • 3 comments

From a user in production.

If either PayerMessage or PayeeNote is empty, you will get an Internal Server Error.

TODO:

Improve Collection::requestToPay to require these two

mtvbrianking avatar Feb 08 '22 09:02 mtvbrianking

Hi. I am trying to figure out what is appropriate to put in payerMessage and payerNote. In the API docs its says that it will be in the transaction history. But I also see something in PreApproval for payerMessage - The mesage that is shown to the approver. So this is throwing me a bit.

When I use your requestToPay function will the requestToPay show a message to the user on their device using payerMessage or will is go into transaction history?

Thanks for the great package by the way!

warmwhisky avatar Mar 19 '23 07:03 warmwhisky

@warmwhisky the PayerMessage and PayeeNote will only be part of the transaction history.

MTN will render a different message to the user prompting them to enter their PIN to approve a debit of AMOUNT from initiator (your company) at a FEE and TAX

mtvbrianking avatar Mar 19 '23 08:03 mtvbrianking

@mtvbrianking Thank you for clearing that up for me.

warmwhisky avatar Mar 19 '23 18:03 warmwhisky