Skip to content

This repository contains a demo PHP implementation of how to the verify the signatures included in the URLs generated by custom menu buttons in Lightspeed R-Series.

Notifications You must be signed in to change notification settings

lightspeedretail/demo-menu-button-signature-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

custom menu button URL signature verification demo

This repository contains a sample implementation of how to the verify the signatures included in the URL generated by custom menu buttons in Lightspeed R-Series. Verifying the signature ensures that the request was sent by a user of Lightspeed and not by a malicious third party.

Installation

To test this demo application on your own local machine you can follow these steps:

  1. Clone this repository

  2. Install composer dependencies (Composer installation instructions). These include some libraries that handle the

    $ composer install
  3. Run the local test server

    $ php -S localhost:8000
  4. In a web browser, log into your Lightspeed R-Series account and navigate to the Menu Buttons section of the Settings menu

  5. Create a button of type "Open Web Page" and set the URL to http://localhost:8000/

  6. Navigate to the register and click the newly created button. If setup correctly, you should see a success message.

About

This repository contains a demo PHP implementation of how to the verify the signatures included in the URLs generated by custom menu buttons in Lightspeed R-Series.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages