sarga payment

This commit is contained in:
merdan 2023-02-25 10:36:29 +05:00
parent b398b561ce
commit 5f597d4985
2 changed files with 3 additions and 163 deletions

View File

@ -61,7 +61,7 @@ class Rysgal extends Payment
];
try {
$result = json_decode($client->post('register.do',$params)->getBody(),true);
Log::info($result);
if((isset($result['errorCode']) && $result['errorCode'] == 0)||(!isset($result['errorCode']) && isset($result['formUrl']))){
return [
'data' => [
@ -107,7 +107,7 @@ class Rysgal extends Payment
$orderId = request()->get('orderId');
if($payment && $orderId){
if($payment && $payment->order_id === $orderId){
$params = [
'form_params' => [
'userName' => $this->getConfigData('business_account'),
@ -117,7 +117,6 @@ class Rysgal extends Payment
];
$result = json_decode($client->post('getOrderStatus.do',$params)->getBody(),true);
Log::info($result);
if($result['ErrorCode'] == 0 && $result['OrderStatus'] == 2){
return [

View File

@ -53,167 +53,8 @@
<span class="search-box"><span class="icon icon-search" id="search"></span></span>
<ul class="right-content-menu">
{!! view_render_event('bagisto.shop.layout.header.comppare-item.before') !!}
@php
$showCompare = core()->getConfigData('general.content.shop.compare_option') == "1" ? true : false
@endphp
@php
$showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false;
@endphp
{!! view_render_event('bagisto.shop.layout.header.compare-item.after') !!}
{!! view_render_event('bagisto.shop.layout.header.currency-item.before') !!}
@if (core()->getCurrentChannel()->currencies->count() > 1)
<li class="currency-switcher">
<span class="dropdown-toggle">
{{ core()->getCurrentCurrencyCode() }}
<i class="icon arrow-down-icon"></i>
</span>
<ul class="dropdown-list currency">
@foreach (core()->getCurrentChannel()->currencies as $currency)
<li>
@if (isset($serachQuery))
<a href="?{{ $serachQuery }}&currency={{ $currency->code }}">{{ $currency->code }}</a>
@else
<a href="?currency={{ $currency->code }}">{{ $currency->code }}</a>
@endif
</li>
@endforeach
</ul>
</li>
@endif
{!! view_render_event('bagisto.shop.layout.header.currency-item.after') !!}
{!! view_render_event('bagisto.shop.layout.header.account-item.before') !!}
<li>
<span class="dropdown-toggle">
<i class="icon account-icon"></i>
<span class="name">{{ __('shop::app.header.account') }}</span>
<i class="icon arrow-down-icon"></i>
</span>
@guest('customer')
<ul class="dropdown-list account guest">
<li>
<div>
<label style="color: #9e9e9e; font-weight: 700; text-transform: uppercase; font-size: 15px;">
{{ __('shop::app.header.title') }}
</label>
</div>
<div style="margin-top: 5px;">
<span style="font-size: 12px;">{{ __('shop::app.header.dropdown-text') }}</span>
</div>
<div class="button-group">
<a class="btn btn-primary btn-md" href="{{ route('customer.session.index') }}" style="color: #ffffff">
{{ __('shop::app.header.sign-in') }}
</a>
<a class="btn btn-primary btn-md" href="{{ route('customer.register.index') }}" style="float: right; color: #ffffff">
{{ __('shop::app.header.sign-up') }}
</a>
</div>
</li>
<hr>
@if ($showWishlist)
<li>
<a href="{{ route('customer.wishlist.index') }}">
{{ __('shop::app.header.wishlist') }}
</a>
</li>
@endif
@if ($showCompare)
<li>
<a href="{{ route('velocity.product.compare') }}">
{{ __('shop::app.customer.compare.text') }}
</a>
</li>
@endif
</ul>
@endguest
@auth('customer')
<ul class="dropdown-list account customer">
<li>
<div>
<label style="color: #9e9e9e; font-weight: 700; text-transform: uppercase; font-size: 15px;">
{{ auth()->guard('customer')->user()->first_name }}
</label>
</div>
<ul>
<li>
<a href="{{ route('customer.profile.index') }}">{{ __('shop::app.header.profile') }}</a>
</li>
@if ($showWishlist)
<li>
<a href="{{ route('customer.wishlist.index') }}">
{{ __('shop::app.header.wishlist') }}
</a>
</li>
@endif
@if ($showCompare)
<li>
<a href="{{ route('velocity.customer.product.compare') }}">
{{ __('shop::app.customer.compare.text') }}
</a>
</li>
@endif
<li>
<form id="customerLogout" action="{{ route('customer.session.destroy') }}" method="POST">
@csrf
@method('DELETE')
</form>
<a
href="{{ route('customer.session.destroy') }}"
onclick="event.preventDefault(); document.getElementById('customerLogout').submit();">
{{ __('shop::app.header.logout') }}
</a>
</li>
</ul>
</li>
</ul>
@endauth
</li>
{!! view_render_event('bagisto.shop.layout.header.account-item.after') !!}
{!! view_render_event('bagisto.shop.layout.header.cart-item.before') !!}
<li class="cart-dropdown-container">
@include('shop::checkout.cart.mini-cart')
</li>
{!! view_render_event('bagisto.shop.layout.header.cart-item.after') !!}
</ul>
<span class="menu-box" ><span class="icon icon-menu" id="hammenu"></span>
<span class="menu-box" ><span class="icon icon-menu" id="hammenu"></span></span>
</div>
</div>