9943ec892e
- Add basic blade components based on already existing element on app - Add module to view online transaction trail, serve as debugger - Add module to review arrahn transaction vs billplz transaction, serve as debugger - Fix tetapan/payable-ujrah-branches error on api response - Add arrahn pay portal api url link in config. The billplz data is query from there
39 lines
846 B
PHP
39 lines
846 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Http\Client\PendingRequest;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
Http::macro('arrahn', function () {
|
|
return Http::withOptions(['verify' => config('app.api_verify')])->baseUrl(config('api.url'));
|
|
});
|
|
|
|
PendingRequest::macro('arrahn', function () {
|
|
$this->options['verify'] = config('app.api_verify');
|
|
$this->baseUrl(config('api.url'));
|
|
return $this;
|
|
});
|
|
}
|
|
}
|