function get_line_items()
 {
     // Do not send lines when  too many line items in the order.
     $count = STCart::count();
     if ($count > 9 or !$count) {
         return false;
     }
     $args = array();
     $item_loop = 0;
     if (STCart::check_cart()) {
         $cart = STCart::get_carts();
         if (!empty($cart)) {
             foreach ($cart as $key => $value) {
                 $args[] = array('name' => $this->paypal_item_name(get_the_title($key)), 'quantity' => $value['number'], 'price' => STCart::get_item_total($value, $key));
             }
             if (STCart::use_coupon()) {
                 $args[] = array('name' => sprintf(st_get_language('coupon_key'), STCart::get_coupon_code()), 'quantity' => 1, 'price' => -STCart::get_coupon_amount());
             }
         }
     }
     return $args;
 }
 * @since 1.0
 *
 * Template checkout
 *
 * Created by ShineTheme
 *
 */
get_header();
?>
    <div class="gap"></div>
    <div class="container">
        <?php 
echo STTemplate::message();
?>
        <?php 
if (!STCart::check_cart()) {
    ?>
            <div class="alert alert-danger">
                <p><?php 
    st_the_language('cart_empty');
    ?>
</p>
            </div>
        <?php 
} else {
    ?>
            <div class="row">
                <div class="col-md-8">
                    <div class="row row-wrap">
                        <div class="col-md-12">
                            <h3><?php