enable http verifcation on crceateBillPlzBill

This commit is contained in:
edmondlang
2021-11-19 20:22:10 +08:00
parent 6f665cdef8
commit 83b3e5801b
@@ -20,7 +20,7 @@ class CreatesBillplzBill
*/
public function execute(string $name, string $email, string $description, float $amount, string $billNumber, ?string $bankCode = null) {
try{
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->withOptions(["verify"=>false])->post(config('billplz.base_url').'/api/v3/bills', [
$response = Http::withBasicAuth(config('billplz.api_key').':', '')->post(config('billplz.base_url').'/api/v3/bills', [
'collection_id' => config('billplz.collection_id'),
'name' => $name,
'email' => $email,