New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

spatie/checkout

A simple e-commerce checkout helper for Laravel 5
698 42

Larablocks Analysis

Compatibility

Trusted maintainer

spatie/checkout works with Laravel 5 (latest release 2.0.3, Dec 14, 2016), which reached end of life: no more fixes, even for security.

Laravel 4 in earlier releases.

  • Trusted maintainer: spatie publishes 287 packages on Larablocks, with 204,166,383 downloads a month between them.

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Dec 14, 2016)
  • 0 downloads a month (needs 10,000)
  • 42 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Dec 14, 2016.
  • No releases in the last 12 months.
  • First released: Aug 23, 2014.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require spatie/checkout
Latest Version:2.0.3
PHP:^5.6.0|^7.0
Laravel:5
Older releases:4
License:MIT
Last Updated:Jan 31, 2026
Links: GitHub  ·  Packagist
Maintainer: spatie

Remember the order id in the checkout process of a webshop

Build Status Latest Stable Version License

When building a checkout process for a webshop, you likely discovery a need to store the id of a newly created order in a session. This Laravel package provides a clean way to work the order id in the session.

Support us

Learn how to create a package like this one, by watching our premium video course:

Laravel Package training

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Installation

This package can be installed through Composer.

composer require spatie/checkout

There is a service provider you can make use of.


// app/config/app.php

'providers' => [
    '...',
    'Spatie\Checkout\CheckoutServiceProvider'
];

This package also comes with a facade, which provides an easy way to use this class.


// app/config/app.php

'aliases' => array(
	...
	'Checkout' => 'Spatie\Checkout\CheckoutFacade',
)

Usage

You can store the order id using this method:

    Checkout::setCurrentOrderId($yourOrderId);

Your order id will be stored in Laravel's session store.

You can retrieve the value with:

    Checkout::getCurrentOrderId();

These methods are also provided:

  • Checkout::clearCurrentOrderId(): Forget the previously stored value.
  • Checkout::isCurrentOrderId($orderId): Convenient method to determine if the given orderId is equal to the value stored with the previous call to setCurrentOrderId.

Alternatives to spatie/checkout

sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

61,445 48
leopaulo88/asaas-sdk-laravel

Laravel SDK for Asaas payment gateway integration

3,264 6
bummzack/omnipay-postfinance

Postfinance Gateway for the Omnipay payment processing library

58,950 6
paytabs/laravel-sdk

Official PayTabs Laravel SDK for Payment Gateway integrations

2,154 2
bayarcash/laravel

Laravel integration for the Bayarcash payment gateway.

1,004 0

Version History

Version Released PHP Laravel License
2.0.3 ^5.6.0|^7.0 ~5.1.0|~5.2.0|~5.3.0 MIT
2.0.2 ^5.6.0|^7.0 ~5.1.0|~5.2.0 MIT
2.0.1 ^5.6.0|^7.0 ~5.1.0|~5.2.0 MIT
2.0.0 ^5.6.0|^7.0 ~5.1.0|~5.2.0 MIT
1.0.1 >=5.4.0 ~4.2|~5.0.0|~5.1.0|~5.2.0 MIT