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:
Afiq Hamzah
2024-07-15 16:43:14 +08:00
parent c083c260cc
commit 9943ec892e
25 changed files with 1151 additions and 139 deletions
+11 -1
View File
@@ -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;
});
}
}