fix wallet insufficient credit

This commit is contained in:
omair saleh
2022-03-04 12:20:28 +08:00
parent 8cd019b64b
commit 5e9d852a84
@@ -22,7 +22,6 @@ 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'), 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,