wip
This commit is contained in:
@@ -147,8 +147,6 @@ class CardOrder extends Resource
|
|||||||
{
|
{
|
||||||
$payment = (new OnlinePaymentRepo())->payCardOrder($resource);
|
$payment = (new OnlinePaymentRepo())->payCardOrder($resource);
|
||||||
|
|
||||||
info([$payment]);
|
|
||||||
|
|
||||||
return $payment['status'] === 'success'
|
return $payment['status'] === 'success'
|
||||||
? URL::remote($payment['url'])
|
? URL::remote($payment['url'])
|
||||||
: sprintf('resources/%s/%s', static::uriKey(), $resource->getKey());
|
: sprintf('resources/%s/%s', static::uriKey(), $resource->getKey());
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class OnlinePaymentRepo
|
|||||||
'language' => 'ru',
|
'language' => 'ru',
|
||||||
'userName' => $resource->branch->billing_username,
|
'userName' => $resource->branch->billing_username,
|
||||||
'password' => $resource->branch->billing_password,
|
'password' => $resource->branch->billing_password,
|
||||||
'returnUrl' => urlencode(route('online-payment-store')),
|
'returnUrl' => route('online-payment-store'),
|
||||||
'pageView' => 'DESKTOP',
|
'pageView' => 'DESKTOP',
|
||||||
'description' => urlencode('Kart tölegi'),
|
'description' => urlencode('Kart tölegi'),
|
||||||
])->onError(function ($response) {
|
])->onError(function ($response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user