Update codebase :
- 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
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Http\Client\PendingRequest;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -23,6 +25,14 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user