Closed habeeblht17 closed 1 year ago
The issue arise because am using the {{ csrf_field() }} {{-- works only when using laravel 5.1, 5.2 --}} in my view page which is only supported in laravel 5 version. When i make use of this , it works perfectly.
Am have this cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /transaction/initialize error when redirecting to paystack payment gateway. How can I solve this error? Below is the code:
/**
and
private function placeOrder($payment_method) { $carts = CartManagement::whereUserId(@Auth::user()->id)->get(); $order = new Order(); $order->user_id = Auth::user()->id; $order->order_number = rand(100000, 999999); $order->sub_total = $carts->sum('price'); $order->discount = $carts->sum('discount'); $order->platform_charge = get_platform_charge($carts->sum('price')); $order->current_currency = get_currency_code(); $order->grand_total = $order->sub_total + $order->platform_charge; $order->payment_method = $payment_method;
Need assistance on this.