From 8cd019b64b89c44eb8d4cf2201f965388d90d8f9 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 4 Mar 2022 12:18:28 +0800 Subject: [PATCH] fix timer for transaction --- .env.example | 8 ++++---- .../Modules/Billplzs/Services/CreatesBillplzBill.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 78c079f5..b1273290 100644 --- a/.env.example +++ b/.env.example @@ -53,7 +53,7 @@ JWT_TTL=1440 IS_PRODUCTION=false BILLPLZ_BASE_URL="https://www.billplz-sandbox.com" -BILLPLZ_API_KEY="0fa4c710-761b-4a7a-a501-c2c2d02643d5" -BILLPLZ_X_SIGNATURE_KEY="S-pbNVthVRsvnPfZlgLwqqOg" -BILLPLZ_COLLECTION_ID="hev2wdjy" -BILLPLZ_WALLET_COLLECTION_ID="hev2wdjy" +BILLPLZ_API_KEY="c8a55af1-08ee-4ed6-bb18-6e5078300d9e" +BILLPLZ_X_SIGNATURE_KEY="S-hcT93TLVGAv9TYWfpTCcWQ" +BILLPLZ_COLLECTION_ID="t0cggbdd" +BILLPLZ_WALLET_COLLECTION_ID="t0cggbdd" diff --git a/app/Classes/Modules/Billplzs/Services/CreatesBillplzBill.php b/app/Classes/Modules/Billplzs/Services/CreatesBillplzBill.php index 0d07aeee..08c41668 100644 --- a/app/Classes/Modules/Billplzs/Services/CreatesBillplzBill.php +++ b/app/Classes/Modules/Billplzs/Services/CreatesBillplzBill.php @@ -22,7 +22,7 @@ class CreatesBillplzBill public function execute(string $name, string $email, string $description, float $amount, string $billNumber, ?string $bankCode = null, ?bool $wallet = null) { try{ // config('billplz.maybank') - dd(config('billplz.api_key')); + dd(config('billplz.api_key'), config('billplz.base_url').'/api/v3/bills'); $response = Http::withBasicAuth(config('billplz.api_key').':', '')->post(config('billplz.base_url').'/api/v3/bills', [ 'collection_id' => $wallet ? config('billplz.wallet_collection_id') : config('billplz.collection_id'), 'name' => $name,