wip
This commit is contained in:
@@ -217,7 +217,7 @@ class OnlinePaymentRepository
|
|||||||
'errorUrl' => $this->provider->returnUrl(),
|
'errorUrl' => $this->provider->returnUrl(),
|
||||||
'username' => $this->provider->username(),
|
'username' => $this->provider->username(),
|
||||||
'paymentStatus' => self::PENDING,
|
'paymentStatus' => self::PENDING,
|
||||||
'apiClient' => $this->apiClient,
|
'api_client' => $this->apiClient,
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($this->relatedModel) {
|
if ($this->relatedModel) {
|
||||||
@@ -260,8 +260,14 @@ class OnlinePaymentRepository
|
|||||||
/** @var \App\Modules\Branch\Models\Branch */
|
/** @var \App\Modules\Branch\Models\Branch */
|
||||||
$bankBranch = $relatedResource->branch;
|
$bankBranch = $relatedResource->branch;
|
||||||
|
|
||||||
$username = $bankBranch->offsetExists($this->apiClient.'_username') ? $bankBranch->{$this->apiClient.'_username'} : '';
|
$username = $bankBranch->offsetExists($paymentHistory->api_client.'_username') ? $bankBranch->{$paymentHistory->api_client.'_username'} : '';
|
||||||
$password = $bankBranch->offsetExists($this->apiClient.'_password') ? $bankBranch->{$this->apiClient.'_password'} : '';
|
$password = $bankBranch->offsetExists($paymentHistory->api_client.'_password') ? $bankBranch->{$paymentHistory->api_client.'_password'} : '';
|
||||||
|
|
||||||
|
info([
|
||||||
|
'bankBranch' => $bankBranch,
|
||||||
|
'username' => $username,
|
||||||
|
'password' => $password,
|
||||||
|
]);
|
||||||
|
|
||||||
if ($username === '' || $password === '') {
|
if ($username === '' || $password === '') {
|
||||||
return $this->paymentFailed('(USERNAME OR PASSWORD NOT FOUND)');
|
return $this->paymentFailed('(USERNAME OR PASSWORD NOT FOUND)');
|
||||||
|
|||||||
Reference in New Issue
Block a user