This commit is contained in:
2025-11-16 18:04:18 +05:00
parent 6428c9e20c
commit 19abe08a90
6 changed files with 23 additions and 22 deletions

View File

@@ -23,16 +23,16 @@ class HalkbankOnlinePaymentRepository implements PaymentProviderContract
protected string $returnUrl = '',
protected string $description = '',
) {
$this->username = $username === '' ? config()->string('module.halkbank-online-payment.username') : $username;
$this->password = $password === '' ? config()->string('module.halkbank-online-payment.password') : $password;
$this->username = $username !== '' ? $username : config()->string('module.halkbank-online-payment.username');
$this->password = $password !== '' ? $password : config()->string('module.halkbank-online-payment.password');
$this->amount = $amount;
$this->orderNumber = $orderNumber === '' ? $this->generateOrderNumber() : $orderNumber;
$this->orderNumber = $orderNumber !== '' ? $orderNumber : $this->generateOrderNumber();
$this->returnUrl = $returnUrl === '' ? config()->string('module.halkbank-online-payment.returnUrl') : $returnUrl;
$this->description = $description === '' ? __('Payment') : $description;
$this->returnUrl = $returnUrl !== '' ? $returnUrl : config()->string('module.halkbank-online-payment.returnUrl');
$this->description = $description !== '' ? $description : __('Payment');
}
/**