1. Go to this page and download the library: Download mysoleas/package-sopay library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mysoleas / package-sopay example snippets
return [
'x-api-key' => 'your api key'
];
use Mysoleas\PackageSopay\PackageSopay;
namespace App\Http\Controllers;
use Mysoleas\PackageSopay\PackageSopay;
class TestController extends Controller
{
public function myControllerMethod() {
$myClassInstance = new PackageSopay();
$myClassInstance->processPayment('mtn_mobile_money',677000000,100000,"XAF","123456789");
}
}
namespace App\Http\Controllers;
use Mysoleas\PackageSopay\PackageSopay;
class TestController extends Controller
{
public function myControllerMethod() {
$myClassInstance = new PackageSopay();
$myClassInstance->getLink('billing', 2, 1000, 'XAF', 'fr', 'Purchase of supplies', 'mysoleas')
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.