Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting error in c3b. #28

Open
rohitgomgee opened this issue Aug 25, 2022 · 1 comment
Open

getting error in c3b. #28

rohitgomgee opened this issue Aug 25, 2022 · 1 comment

Comments

@rohitgomgee
Copy link

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.

@gathuku
Copy link
Owner

gathuku commented Aug 25, 2022

@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

$url = $this->base_url.'/c2b/v1/simulate';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants