laravel-mtn-momo
laravel-mtn-momo copied to clipboard
Laravel MTN MoMo API Integration
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://sandbox.momodeveloper.mtn.com/v1_0/apiuser
**Steps** - Clear application cache ```bash php artisan config:clear ``` - Delete existing access token(s) from the database ```php \Bmatovu\MtnMomo\Models\Token::truncate(); ``` - Confirm package configuration ```php config('mtn-momo') ``` \* Refer...
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
```php function msisdn($phoneNumber, $countryCode = '256', $networkCodes = '39|76|77|78') { $phoneNumber = preg_replace('/[^\d]/', '', $phoneNumber); if(! preg_match("/^(0|{$countryCode})({$networkCodes})[\d+]{7}$/", $phoneNumber, $matches)) { throw new \InvalidArgumentException('Invalid phone number'); } if($matches[1] == '0') {...
Refactor
Separate into PHP only app and Laravel app Return GuzzleHttp responses Throw GuzzleHttp exceptions - Remove extra exceptions
Claim a consent by the account holder for the requested scopes. ```http POST /bc-authorize ``` Claim a consent by the account holder for the requested scopes. ```http POST /oauth2/token/ ```...
Change [](https://twitter.com/themsaid/status/1379396539160879107?s=21) Source https://twitter.com/themsaid/status/1379101925250043906 Reason https://twitter.com/themsaid/status/1379127661965021185
When I use the following use Bmatovu\MtnMomo\Products\Collection; $collection = new Collection(); $referenceId = $collection->requestToPay('yourTransactionId', '46733123454', 100); I receive this error "Error Call to a member function isPast() on string". And...
Thank you for your work When verifying the transaction by passing it the id, this error occurs in the TokenUtilTrait at the level of the isExpired() function in the vendor....
Makes use of Carbon to do some more reliable checking of token expiration. Addresses the issue experienced in #79