laravel_mpesa icon indicating copy to clipboard operation
laravel_mpesa copied to clipboard

getting error in c3b.

Open rohitgomgee opened this issue 1 year ago • 1 comments

On call : $simulateResponse=Mpesa::simulateC2B(10, "254708374149", "Testing"); Getting this error : {"fault":{"faultstring":"Unable to identify proxy for host: secure and url: /c2b/v1/simulate","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}

Please help me to fix it.

rohitgomgee avatar Aug 25 '22 07:08 rohitgomgee

@rohitgomgee Safaricom have upgraded this endpoint to V2, am not sure but they might have closed V1. This package is still out of date. You can fork the package and change this line to v2 https://github.com/gathuku/laravel_mpesa/blob/ace7024633d7b24015c69daa459df23ea0438523/src/Mpesa.php#L309

gathuku avatar Aug 25 '22 09:08 gathuku