Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

TokenMismatchException

I am getting this error message after pressing the checkout button.

I already have the @csrf:

 <form action="{{ url('/checkout') }}" method="POST" id="myForm">
            
            @csrf

ref: https://stackoverflow.com/questions/34866404/tokenmismatchexception-in-verifycsrftoken-php-line-67

Any idea why?

0 likes
20 replies
laracoft's avatar

@davy_yg Please verify that the CSRF is indeed being sent to /checkout

  1. In Chrome, press F12 to bring up Developer tools
  2. Click on Network tab
  3. Check Preserve log
  4. Check Disable Cache
  5. Press the Clear button
  6. Click on your form's submit button
  7. Click on the first URL that appears in the Developer tools
  8. Under Headers, click Form Data and view source, select the all the data copy and paste them here
Haroon1296's avatar

in app.blade.php paste it inside the < head > tag

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
davy_yg's avatar
Level 27

I don't understand step 8 -

What I could do is click right mouse button on the web and view page source.

laracoft's avatar

Did you perform #7? Click on the first URL (checkout)

Snapey's avatar

You will get this error if, for some reason your sessions are not working.

Its usually pretty obvious that the CSRF is not present in the request

@davy_yg you should know how to use your dev tools after several years of doing this work ?

1 like
rawilk's avatar

There's a lot of things you'd think he would know how to do by now, like debug problems he's had multiple times in the past.

laracoft's avatar

🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️🤦‍♂️

davy_yg's avatar
Level 27

I did step 7.

https://sample.advance-web-studio.com/checkout.jpg

I already clicked the link that appeared on the console:

POST http://localhost/lekaeshop/vito/public/checkout 500 (Internal Server Error)

I cannot understand why the csrf is not present in the request:

I have the @csrf written down in the script.

<form action="{{ url('/checkout') }}" method="POST" id="myForm">
            
            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
laracoft's avatar

Step 7, 8, click the RED boxes https://ibb.co/LJzt3ms

We are keenly aware of your CSRF problem, please stay focused and do step 7 and 8 properly first.

davy_yg's avatar
Level 27

Form Data

order_name=Admin&order_address=Jln+Wara-Wiri&order_province=3&order_city_destination=106&order_shipping_type=OKE&order_email=admin%40admin.com&order_phone=081234&coupon_code=

laracoft's avatar

Good. Now we are talking.

  1. Do you see CSRF anywhere in your Form Data? No. That's why you have 419 TokenMismatchException.
  2. Now, before you submit the form, show the FULL HTML near your <form, we need to see how your @csrf is formed.
davy_yg's avatar
Level 27

This is enough right?

checkout.blade.php

@extends('layouts.store.store-next')

@section('breadcrumb')
<section class="banner banner-cart bg-parallax">
    <div class="overlay"></div>
    <div class="container">
        <div class="banner-content text-center">
            <h2 class="page-title">CHECK OUT PAGE</h2>
            <div class="breadcrumbs">
                <a href="#">Home</a>
                <span>CHECK OUT PAGE</span>
            </div>
        </div>
    </div>
</section>
@endsection

@section('content')
<div class="maincontainer">
    <div class="container">
        <!-- Step Checkout-->
        <div class="step-checkout">
            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-2">
                    <div class="step cart">
                        <div class="icon"></div>
                        <span class="step-count">01</span>
                        <h3 class="step-name">Shopping Cart</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step checkout active">
                        <div class="icon"></div>
                        <span class="step-count">02</span>
                        <h3 class="step-name">Check out</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step complete">
                        <div class="icon"></div>
                        <span class="step-count">03</span>
                        <h3 class="step-name">Order Complete</h3>
                    </div>
                </div>
            </div>
        </div>
        <!-- ./Step Checkout-->

        <form action="{{ url('/checkout') }}" method="POST" id="myForm">

            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
                        <!-- <p>
                        required
                            <label>Country <span class="required">*</span></label>
                            <select>
                                <option>United states</option>
                                <option>Hanoi</option>
                            </select>
                        </p> -->

                        <div class="row">
                            <div class="col-sm-12">
                                <p>
                                    <label>NAMA <span class="required">*</span></label>
                                    <input type="text" name="order_name" value="{{ $user->name }}"/>
                                </p>
                            </div>                                
                        </div>
                        <p>
                            <label>ALAMAT</label>
                            <input type="text" name="order_address" value="{{ $user->alamat_temp }}"/>
                        </p>
                       
                        <p>
                            <label>PROVINSI <span class="required">*</span></label>
                            <select class="form-control" name="order_province" id="order_province" value="select">
                                <option id="order_province-placeholder">
                                    Silahkan pilih provinsinya.
                                </option>
                                @foreach ($provinsi as $item)

                                    <option value="{{ $item->province_id }}" @if($item->province_id == $user->provinsi_id) selected @endif>
                                        {{ $item->province }}
                                    </option>
                                @endforeach
                            </select>
                        </p>

                        <p>
                            <label>KOTA <span class="required">*</span></label>
                            <select class="form-control order-city-selector" name="order_city_destination" id="order_city_destination" disabled>
                                <option>
                                    Silahkan pilih provinsi terlebih dahulu.
                                </option>
                            </select>
                        </p>

                        <label><small>Pengiriman (JNE):<strong>*</strong></small></label>
                            <span id="shipping-info-area">

                            </span><br>

                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>EMAIL ADDRESS <span class="required">*</span></label>
                                    <input type="email" name="order_email" value="{{ $user->email }}"/>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label>PHONE NUMBER <span class="required">*</span></label>
                                    <input type="text" name="order_phone" value="{{ $user->phone }}"/>
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>Bank Transfer</label>
                                    <option type="radio" name="bank" value="bank"><label for="bank">BCA Davy Gunarso</label></option>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label><small>Masukkan Kupon:</small></label>
                                    <input type="text" id="coupon_code" class="width" value="" size="42" tabindex="1" />
                                    <input type="hidden" id="realcoupon_code" name="coupon_code" />
                                    <input type="hidden" id="original_coupon" class="width" value="" size="42" tabindex="1" />
                                    <button id="btn_apply_coupon" type="button" class="btn btn-default">Check</button>
                                    <button id="btn_reset_coupon" type="button" class="btn btn-default">Reset</button>
                                </p>
                            </div>
                        </div>  
                        <div>
                            <label class="checkbox-inline">
                              <input type="checkbox" id="inlineCheckbox1" value="option1"> CREATE AN ACCOUNT ?
                            </label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <h3 class="form-title">YOUR ORDERS</h3>
                    <div class="order-review">
                        <table>
                            <tbody>
                                <tr>
                                    <td>Product name</td>
                                    <td>Qty</td>
                                    <td>Sub total</td>
                                </tr>
                                @php($subtotal = 0)
                                @php($totalweight = 0)
                                @foreach($cart as $content)
                                <tr>
                                    <td>{{ $content->product->prod_name }}</td>
                                    <td>{{ $content->amount }}</td>
                                    <td><span class="amount"> Rp. {{ (int) ($content->product->prod_price * $content->amount) }}</span></td>
                                @php($subtotal = $subtotal + ($content->product->prod_price * $content->amount))
                                @php($totalweight = $totalweight + ($content->product->prod_weight * $content->amount))
                                </tr>
                                @endforeach
                                <tr>
                                    <td colspan="2">CART SUBTOTAL</td>
                                    <td>
                                        <span class="amount">Rp. {{ (int) $subtotal }}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">COUPON DISC</td>
                                    <td>
                                        <span id="CDisc">-</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">SHIPPING & HANDLING</td>
                                    <td>
                                        <span id="spCost">FREE SHIPPING</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">ORDER TOTAL</td>
                                    <td>
                                        <span class="amount">Rp. </span><span id="spTotal">{{ (int) $subtotal }}</span>
                                        
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="paymment-method">
                        <h3 class="form-title">PAYMENT METHOD</h3>
                        
                        <div class="checkbox">
                            <label>
                            <input type="checkbox" value="">
                            I’VE READ AND ACCEPT THE TERM & CONDITIONS
                            </label>
                        </div>
                    </div>
                    <button type="submit" class="button pull-right">Checkout</button>
                </div>
            </div>
        </div>
    </form>
davy_yg's avatar
Level 27

Should I copas from view-source:

view-source:http://localhost/lekaeshop/vito/public/checkout

<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<meta charset="UTF-8">
		<meta name="csrf-token" content="Jmz46ammfDtxQWo1iVxJCzfe3zqLSVnJo4WrVNDu">
	<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="csrf-token" content="Jmz46ammfDtxQWo1iVxJCzfe3zqLSVnJo4WrVNDu">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
	<meta name="viewport" content="width=device-width" /> -->
	<title>Adrian EShop</title>
	<!-- <link rel="icon"
  type="image/x-icon"
  href="http://localhost/lekaeshop/vito/public/images/favicon/favicon.png"> -->

<!-- Start CSS Link -->
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/main.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/bootstrap.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/font-awesome.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/owl.carousel.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/chosen.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/superslides.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/magnific-popup.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/jquery.mCustomScrollbar.css" type="text/css" media="all">
	<!-- <link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/animate.css" type="text/css" media="all"> -->
	<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700,900' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Raleway:400,700,500' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/style.css" type="text/css" media="all">
	<!-- End CSS Link -->

</head>

<body class="">
	<header class="header">
    <div class="top-header">
        <div class="container">
            <div class="top-header-menu">
                <a href="#"><i class="fa fa-phone"></i> +84 868.8568</a> 
                <a href="#"><i class="fa fa-clock-o"></i> MON - SAT: 08 am - 17 pm</a>
                <a href="#"><i class="fa fa-envelope-o"></i> [email protected]</a> 
            </div>
            <div class="top-header-right">

                

                <ul>
                                              <li><a href="http://localhost/lekaeshop/vito/public/profile"><img alt="" src="http://localhost/lekaeshop/vito/public/images/my_account.png"> HELLO, ADMIN</a></li>
                      <li><a href="http://localhost/lekaeshop/vito/public/wishlists"><img alt="" src="http://localhost/lekaeshop/vito/public/images/mywish_list.png"> MY WISHLIST</a></li>
                      <li><a href="http://localhost/lekaeshop/vito/public/logout"><img alt="" src="http://localhost/lekaeshop/vito/public/images/log_out.png"> LOGOUT</a></li>
                                            <li><a href="http://localhost/lekaeshop/vito/public/login"><i class="fa fa-key"></i> LOGIN</a></li>
                    <li><a href="#"><i class="fa fa-user"></i> REGISTER</a></li>
                    <li class="dropdown">
                        <a data-toggle="dropdown" href="#"><i class="fa fa-cog"></i> SETTINGS</a>
                        <ul class="dropdown-menu">
                            <li><a href="#">MY ACCOUNT</a></li>
                            <li><a href="#">My Wishlist</a></li>
                            <li><a href="#">PAYMENT</a></li>
                            <li><a href="#">POLICY</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a data-toggle="dropdown" href="#">USD</a>
                        <ul class="dropdown-menu">
                            <li><a class="current" href="#">USD</a></li>
                            <li><a href="#">Euro</a></li>
                        </ul>
                    </li>
                    <li class="dropdown language">
                        <a data-toggle="dropdown" href="#"><img src="images/en.jpg" alt=""/>ENGLISH</a>
                        <ul class="dropdown-menu">
                            <li><a class="current" href="#">ENGLISH</a></li>
                            <li><a href="#">French<img src="images/fr.jpg" alt="" /></a></li>
                            <li><a href="#">GERMANY<img src="images/gren.jpg" alt="" /></a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
	<div class="main-header">
        <div class="container main-header-inner">
            <div id="form-search" class="form-search">
                <form>
                    <input type="text" placeholder="YOU CAN SEARCH HERE..." />
                    <button class="btn-search"><i class="fa fa-search"></i></button>
                </form>
            </div>
            <div class="row">
                <div  class="col-sm-12">
                    <div class="logo">
                        <a href="index.html"><img src="http://localhost/lekaeshop/vito/public/images/logo.png" alt="" /></a>
                    </div>
                </div>
                <div class="col-sm-10 main-menu-wapper">
                    <a href="#" class="mobile-navigation"><i class="fa fa-bars"></i></a>
                    <nav id="main-menu" class="main-menu">
                        <ul class="navigation">
                            <li><a href="http://localhost/lekaeshop/vito/public">Home</a></li>
                            
                            <li><a href="http://localhost/lekaeshop/vito/public/about">About Us</a></li>
                            <li><a href="http://localhost/lekaeshop/vito/public/catalog">Catalog</a></li>
                                                             <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/1">
                                                        Women
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/1/1">Dresses</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/2">
                                                        Men
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/2/3">Dresses</a></li>

                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/2/5">Coats &amp; Jackets</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/3">
                                                        Accessories
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/3/4">Watches</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <!-- <li class="menu-item-has-children">
                            <a href="#">Category</a>
                            <ul class="sub-menu">                                      
                                <li><a href="http://localhost/lekaeshop/vito/public/c_men">Men</a></li>
                                <li><a href="http://localhost/lekaeshop/vito/public/c_women">Women</a></li>
                            </ul>                                  
                                                            
                            <li><a href="http://localhost/lekaeshop/vito/public/product">Products</a></li> -->
                            <li><a href="http://localhost/lekaeshop/vito/public/faq">FAQ</a></li>
                            <li class="menu-item-has-children">
                                <a href="#">Blog</a>
                                <ul class="sub-menu">                                      
                                    <li><a href="http://localhost/lekaeshop/vito/public/blog">Blog Grid 3 columns</a></li>
                                    <li><a href="http://localhost/lekaeshop/vito/public/blog_single">Blog Single post</a></li>
                                </ul>
                            </li>
                            <li><a href="http://localhost/lekaeshop/vito/public/contact">CONTACT</a></li>
                        </ul>
                    </nav>
                </div>
                <div class="col-sm-2">
                    <!-- Icon search -->
                    <div class="icon-search">
                        <span class="icon"><i class="fa fa-search"></i></span>
                    </div>
                    <!-- ./Icon search -->
                    <!-- Mini cart -->
                    <div class="mini-cart">
                        <a class="icon" href="#">Cart <span class="count">2</span></a>
                        <div class="mini-cart-content">
                            <ul class="list-cart-product">
                                <li>
                                    
                                    <div class="product-thumb">
                                        <a href="#"><img src="images/products/product-cart1.jpg" alt="" /></a>
                                    </div>
                                    <div class="product-info">
                                        <h5 class="product-name"><a href="#">Ledtead Predae</a></h5>
                                        <span class="price">.00</span>
                                        <span class="qty">Qty: 1 - Size: L</span>
                                        <a href="#" class="remove">remove</a>
                                    </div>
                                </li>
                                <li>
                                    <div class="product-thumb">
                                        <a href="#"><img src="images/products/product-cart2.jpg" alt="" /></a>
                                    </div>
                                    <div class="product-info">
                                        <h5 class="product-name"><a href="#">Ledtead Predae</a></h5>
                                        <span class="price">.00</span>
                                        <span class="qty">Qty: 1 - Size: M</span>
                                        <a href="#" class="remove">remove</a>
                                    </div>
                                </li>
                            </ul>
                            <p class="sub-toal-wapper">
                                <span>SUBTOTAL</span>
                                <span class="sub-toal">0.00</span>
                            </p>
                            <a href="http://localhost/lekaeshop/vito/public/cart" class="btn-view-cart">VIEW SHOPPING CART</a>
                            <a href="http://localhost/lekaeshop/vito/public/checkout" class="btn-check-out">PROCESS TO CHECK OUT</a>
                        </div>
                    </div>
                    <!-- ./Mini cart -->
                </div>
            </div>
        </div>
    </div>
</header>
	    <section class="banner banner-cart bg-parallax">
    <div class="overlay"></div>
    <div class="container">
        <div class="banner-content text-center">
            <h2 class="page-title">CHECK OUT PAGE</h2>
            <div class="breadcrumbs">
                <a href="#">Home</a>
                <span>CHECK OUT PAGE</span>
            </div>
        </div>
    </div>
</section>

    <div class="maincontainer">
    <div class="container">
        <!-- Step Checkout-->
        <div class="step-checkout">
            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-2">
                    <div class="step cart">
                        <div class="icon"></div>
                        <span class="step-count">01</span>
                        <h3 class="step-name">Shopping Cart</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step checkout active">
                        <div class="icon"></div>
                        <span class="step-count">02</span>
                        <h3 class="step-name">Check out</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step complete">
                        <div class="icon"></div>
                        <span class="step-count">03</span>
                        <h3 class="step-name">Order Complete</h3>
                    </div>
                </div>
            </div>
        </div>
        <!-- ./Step Checkout-->

        <form action="http://localhost/lekaeshop/vito/public/checkout" method="POST" id="myForm">
            
            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
                        <!-- <p>
                        required
                            <label>Country <span class="required">*</span></label>
                            <select>
                                <option>United states</option>
                                <option>Hanoi</option>
                            </select>
                        </p> -->

                        <div class="row">
                            <div class="col-sm-12">
                                <p>
                                    <label>NAMA <span class="required">*</span></label>
                                    <input type="text" name="order_name" value="Admin"/>
                                </p>
                            </div>                                
                        </div>
                        <p>
                            <label>ALAMAT</label>
                            <input type="text" name="order_address" value="Jln Wara-Wiri"/>
                        </p>
                       
                        <p>
                            <label>PROVINSI <span class="required">*</span></label>
                            <select class="form-control" name="order_province" id="order_province" value="select">
                                <option id="order_province-placeholder">
                                    Silahkan pilih provinsinya.
                                </option>
                                
                                    <option value="1" >
                                        Bali
                                    </option>
                                
                                    <option value="2" >
                                        Bangka Belitung
                                    </option>
                                
                                    <option value="3" >
                                        Banten
                                    </option>
                                
                                    <option value="4" >
                                        Bengkulu
                                    </option>
                                
                                    <option value="5" >
                                        DI Yogyakarta
                                    </option>
                                
                                    <option value="6" >
                                        DKI Jakarta
                                    </option>
                                
                                    <option value="7" >
                                        Gorontalo
                                    </option>
                                
                                    <option value="8" >
                                        Jambi
                                    </option>
                                
                                    <option value="9" >
                                        Jawa Barat
                                    </option>
                                
                                    <option value="10" >
                                        Jawa Tengah
                                    </option>
                                
                                    <option value="11" >
                                        Jawa Timur
                                    </option>
                                
                                    <option value="12" >
                                        Kalimantan Barat
                                    </option>
                                
                                    <option value="13" >
                                        Kalimantan Selatan
                                    </option>
                                
                                    <option value="14" >
                                        Kalimantan Tengah
                                    </option>
                                
                                    <option value="15" >
                                        Kalimantan Timur
                                    </option>
                                
                                    <option value="16" >
                                        Kalimantan Utara
                                    </option>
                                
                                    <option value="17" >
                                        Kepulauan Riau
                                    </option>
                                
                                    <option value="18" >
                                        Lampung
                                    </option>
                                
                                    <option value="19" >
                                        Maluku
                                    </option>
                                
                                    <option value="20" >
                                        Maluku Utara
                                    </option>
                                
                                    <option value="21" >
                                        Nanggroe Aceh Darussalam (NAD)
                                    </option>
                                
                                    <option value="22" >
                                        Nusa Tenggara Barat (NTB)
                                    </option>
                                
                                    <option value="23" >
                                        Nusa Tenggara Timur (NTT)
                                    </option>
                                
                                    <option value="24" >
                                        Papua
                                    </option>
                                
                                    <option value="25" >
                                        Papua Barat
                                    </option>
                                
                                    <option value="26" >
                                        Riau
                                    </option>
                                
                                    <option value="27" >
                                        Sulawesi Barat
                                    </option>
                                
                                    <option value="28" >
                                        Sulawesi Selatan
                                    </option>
                                
                                    <option value="29" >
                                        Sulawesi Tengah
                                    </option>
                                
                                    <option value="30" >
                                        Sulawesi Tenggara
                                    </option>
                                
                                    <option value="31" >
                                        Sulawesi Utara
                                    </option>
                                
                                    <option value="32" >
                                        Sumatera Barat
                                    </option>
                                
                                    <option value="33" >
                                        Sumatera Selatan
                                    </option>
                                
                                    <option value="34" >
                                        Sumatera Utara
                                    </option>
                                                                </select>
                        </p>

                        <p>
                            <label>KOTA <span class="required">*</span></label>
                            <select class="form-control order-city-selector" name="order_city_destination" id="order_city_destination" disabled>
                                <option>
                                    Silahkan pilih provinsi terlebih dahulu.
                                </option>
                            </select>
                        </p>

                        <label><small>Pengiriman (JNE):<strong>*</strong></small></label>
                            <span id="shipping-info-area">

                            </span><br>

                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>EMAIL ADDRESS <span class="required">*</span></label>
                                    <input type="email" name="order_email" value="[email protected]"/>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label>PHONE NUMBER <span class="required">*</span></label>
                                    <input type="text" name="order_phone" value="081234"/>
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>Bank Transfer</label>
                                    <option type="radio" name="bank" value="bank"><label for="bank">BCA Davy Gunarso</label></option>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label><small>Masukkan Kupon:</small></label>
                                    <input type="text" id="coupon_code" class="width" value="" size="42" tabindex="1" />
                                    <input type="hidden" id="realcoupon_code" name="coupon_code" />
                                    <input type="hidden" id="original_coupon" class="width" value="" size="42" tabindex="1" />
                                    <button id="btn_apply_coupon" type="button" class="btn btn-default">Check</button>
                                    <button id="btn_reset_coupon" type="button" class="btn btn-default">Reset</button>
                                </p>
                            </div>
                        </div>  
                        <div>
                            <label class="checkbox-inline">
                              <input type="checkbox" id="inlineCheckbox1" value="option1"> CREATE AN ACCOUNT ?
                            </label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <h3 class="form-title">YOUR ORDERS</h3>
                    <div class="order-review">
                        <table>
                            <tbody>
                                <tr>
                                    <td>Product name</td>
                                    <td>Qty</td>
                                    <td>Sub total</td>
                                </tr>
                                                                                                                                            <tr>
                                    <td>Tokean Black</td>
                                    <td>1</td>
                                    <td><span class="amount"> Rp. 95000</span></td>
                                                                                                        </tr>
                                                                    <tr>
                                    <td>AP Rubber</td>
                                    <td>2</td>
                                    <td><span class="amount"> Rp. 440000</span></td>
                                                                                                        </tr>
                                                                    <tr>
                                    <td colspan="2">CART SUBTOTAL</td>
                                    <td>
                                        <span class="amount">Rp. 535000</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">COUPON DISC</td>
                                    <td>
                                        <span id="CDisc">-</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">SHIPPING & HANDLING</td>
                                    <td>
                                        <span id="spCost">FREE SHIPPING</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">ORDER TOTAL</td>
                                    <td>
                                        <span class="amount">Rp. </span><span id="spTotal">535000</span>
                                        
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="paymment-method">
                        <h3 class="form-title">PAYMENT METHOD</h3>
                        
                        <div class="checkbox">
                            <label>
                            <input type="checkbox" value="">
                            I’VE READ AND ACCEPT THE TERM & CONDITIONS
                            </label>
                        </div>
                    </div>
                    <button type="submit" class="button pull-right">Checkout</button>
                </div>
            </div>
        </div>
    </form>
    </div>
</div>
laracoft's avatar

@davy_yg

Please stick to english and avoid terms like copas. For whatever reason, your @csrf did not change to <input type="hidden" name="_token" value="...">

Can you replace @csrf with <input type="hidden" name="_token" value="{{ csrf_token() }}"> in your blade, and show the rendered HTML again?

jlrdw's avatar

@davy_yg have you checked for any issues on this package website. Is it from a Github repository.

Please or to participate in this conversation.