Credits are due to the mentioned owners of all gems used. See links below. Created and inspired by Daveyon Mayne @ MayneWeb. Copyright 2018. License: MIT.
This is a simple demonstration using Spree Commerce 3 tied with Xero to generate an invoice after a successful order from your storefront.
This application acts as a "mini bookeeper". Once you've made an order from your Spree storefront, it creates an invoice for that customer then marks that invoice paid in your online Xero account.
Before creating an invoice, it checks your Xero account to see whether or not that customer is already in your Xero account then uses their details for the generated invoice. If not, it creates a new contact/customer for you.
This application is configured for a private application only. Therefore you will need your privatekey.pem
to be in the root of your application. See the .gitignore
file.
We have written how to use this application in greater detail here.
-
Ruby version: 2.5.0
-
PostgreSQL
-
A Xero account