Coder Social home page Coder Social logo

tasty-ext-squareinvoice's Introduction

Square Invoice

Creates an invoice in squareup.com from an existing TastyIgniter order. This extension registers a placeholder payment method which doesn't take in any payment data at checkout.

Dependancies

This extension will install the PHP square SDK https://github.com/square/square-php-sdk. Common usage will depend on either a variable delivery fee extension such as cupnoodles.postmates or an order editor such as cupnoodles.ordermenuedit.

Installation

Clone these files into extensions/cupnoodles/squareinvoice/. While a marketplace install automatically installs composer, manual installation requires that you run composer install within the extension directory in order to create the required vendor/ files.

Usage

Square Invoices are used for a very specific order flow that will not be useful for most restaraunt enviroments. The currently intended usage is as follows:

  • Customer creates an order with the Square Invoice payment method, which takes in no extra data and doesn't make any charges.
  • On the backend, kitchen staff can update the order contents and cost through an order editing extension such as cupnoodles.ordermenuedit.
  • Once the order is in the desired state, kitchen staff can click a button on the admin order view which
    • creates a Square Order (note that an Order ID will be generated and saved to the orders table, but unpaid order do not show up in the Square dashboard under 'Orders')
    • creates a Square Invoice based on the Order ID. Invoices can be see in the Square admin dashboard.
    • publishes the Square Invoice, which will automatically send the invoice link to the customer email address supplied in the order.

tasty-ext-squareinvoice's People

Contributors

cupnoodles avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

breaksecurity

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.