wip
This commit is contained in:
@@ -23,10 +23,16 @@ class HalkbankOnlinePaymentRepository implements PaymentProviderContract
|
||||
protected string $returnUrl = '',
|
||||
protected string $description = '',
|
||||
) {
|
||||
$this->username = config()->string('module.halkbank-online-payment.username');
|
||||
$this->password = config()->string('module.halkbank-online-payment.password');
|
||||
$this->returnUrl = config()->string('module.halkbank-online-payment.returnUrl');
|
||||
$this->orderNumber = $this->generateOrderNumber();
|
||||
$this->username = $username === '' ? config()->string('module.halkbank-online-payment.username') : $username;
|
||||
$this->password = $password === '' ? config()->string('module.halkbank-online-payment.password') : $password;
|
||||
|
||||
$this->amount = $amount;
|
||||
|
||||
$this->orderNumber = $orderNumber === '' ? $this->generateOrderNumber() : $orderNumber;
|
||||
|
||||
$this->returnUrl = $returnUrl === '' ? config()->string('module.halkbank-online-payment.returnUrl') : $returnUrl;
|
||||
|
||||
$this->description = $description === '' ? __('Payment') : $description;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user