sarga payment
This commit is contained in:
parent
02e8ec4226
commit
44bed9716c
|
|
@ -3,6 +3,7 @@
|
||||||
namespace Sarga\Payment\Http\Controllers;
|
namespace Sarga\Payment\Http\Controllers;
|
||||||
|
|
||||||
use GuzzleHttp\Exception\ConnectException;
|
use GuzzleHttp\Exception\ConnectException;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
use Sarga\Payment\Methods\Rysgal;
|
use Sarga\Payment\Methods\Rysgal;
|
||||||
use Webkul\Checkout\Facades\Cart;
|
use Webkul\Checkout\Facades\Cart;
|
||||||
|
|
||||||
|
|
@ -43,6 +44,8 @@ class RysgalController extends Controller
|
||||||
|
|
||||||
$result = $this->altynAsyr->getOrderStatus();
|
$result = $this->altynAsyr->getOrderStatus();
|
||||||
|
|
||||||
|
Log::info($result);
|
||||||
|
|
||||||
if ($result['success'] ) {
|
if ($result['success'] ) {
|
||||||
$order = $this->orderRepository->create(Cart::prepareDataForOrder());
|
$order = $this->orderRepository->create(Cart::prepareDataForOrder());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,9 @@ class Rysgal extends Payment
|
||||||
|
|
||||||
$payment = $this->getCart()->payment;
|
$payment = $this->getCart()->payment;
|
||||||
|
|
||||||
|
|
||||||
$orderId = request()->get('orderId');
|
$orderId = request()->get('orderId');
|
||||||
|
Log::info($orderId,$payment);
|
||||||
|
|
||||||
if($payment && $payment->order_id === $orderId){
|
if($payment && $payment->order_id === $orderId){
|
||||||
$params = [
|
$params = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue