1. Go to this page and download the library: Download xehub/xepay 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/ */
xehub / xepay example snippets
use use Xehub\Xepay\OrderProvider;
class CustomOrderProvider implements OrderProvider
{
...
}
class AppServiceProvider extends ServiceProvider
{
public function register()
{
$this->app->resolving('xepay', function ($payment, $app) {
$payment->provider('custom', function () {
return new CustomOrderProvider();
});
});
}
}