2017 © Pedro Peláez
 

library checkout

A simple e-commerce checkout helper for Laravel 5

image

spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  • Tuesday, January 2, 2018
  • by Spatie
  • Repository
  • 3 Watchers
  • 31 Stars
  • 604 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

, (*1)

Remember the order id in the checkout process of a webshop

Build Status Latest Stable Version License, (*2)

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., (*3)

Support us

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

Laravel Package training, (*5)

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., (*6)

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., (*7)

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., (*8)

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium., (*9)

The best postcards will get published on the open source page on our website., (*10)

Installation

This package can be installed through Composer., (*11)

composer require spatie/checkout

There is a service provider you can make use of., (*12)


// app/config/app.php 'providers' => [ '...', 'Spatie\Checkout\CheckoutServiceProvider' ];

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


// app/config/app.php 'aliases' => array( ... 'Checkout' => 'Spatie\Checkout\CheckoutFacade', )

Usage

You can store the order id using this method:, (*14)

    Checkout::setCurrentOrderId($yourOrderId);

Your order id will be stored in Laravel's session store., (*15)

You can retrieve the value with:, (*16)

    Checkout::getCurrentOrderId();

These methods are also provided:, (*17)

  • 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.

The Versions

02/01 2018

dev-master

9999999-dev https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

15/12 2016

2.0.3

2.0.3.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

27/04 2016

2.0.2

2.0.2.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

22/04 2016

2.0.1

2.0.1.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

22/04 2016

2.0.0

2.0.0.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

20/04 2016

1.0.1

1.0.1.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

24/05 2015

1.0.0

1.0.0.0 https://github.com/spatie/checkout

A simple e-commerce checkout helper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

24/08 2014

0.1.2

0.1.2.0

A simple e-commerce checkout helper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

23/08 2014

0.1.1

0.1.1.0

A simple e-commerce checkout helper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout

23/08 2014

0.1.0

0.1.0.0

A simple e-commerce checkout helper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel payment gateway helper webshop checkout