...
Introduction
Introduction of Woocommerce Xero Integration
Woocommerce Xero Integration is a great tool which allows you to synchronize accounting data automatically from Wordpress store to Xero Website.
The main features
1. Sync customers from Woocommerce to Xero in automatic or manual mode.
2. Sync products from Woocommerce to Xero in automatic or manual mode.
3. Sync orders from wordpress Woocommerce store to Xero in automatic or manual mode.
4. Sync invoices from wordpress store Woocommerce store to Xero in automatic or manual mode.
5. Report data sync from Woocommerce to Xero.
6. On/Off sync customer/product/invoice from Woocomerce store to Xero.
Configuration
1. You need private key and public key: Visit this link and follow the instructions - Create a public/private key pair
![](/download/attachments/18546977/image2017-8-16%2014%3A17%3A21.png?version=1&modificationDate=1502893058000&api=v2)
- Step 1: openssl genrsa -out privatekey.pem 1024
- Step 2: openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
- Step 3: openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer
NOTE: When you creates a public key and private key, press "Enter" and do not enter a password or any information during key generation.
...
2. Create private application in app.xero.com
Image Added
Image Removed
- Choose: Private - just for use with my own organisation
...
- Select which organisation your application can access
- X509 Public Key Certificate Public Key:
+ Choose: Upload X509 certificate file (.cer)
+ Upload the file publickey.cer has just initialized
+ Click the checkbox: I have read and agree to the Xero Developer Platform.
- Click button SaveCreate App.
You receive:
- Consumer Key
- Consumer Secret
Image Removed
Image Added
Copy and store 2 keys received.
...
Before installing the plugin in your wordpress site, you have to upload two file public key and private key to the server "wp-content/plugins/woocommerce-xero-integration/controllers/certs".
Image Added
Following this directory:
Woocommerce -> Settings -> Xero Integration and Fill in the box with the data you just obtained.
Image Added
Image Removed
- Consumer Key and Consumer secret in app xero.
...
c. Add Order
![](/download/attachments/18546977/image2017-8-16%2015%3A0%3A40.png?version=1&modificationDate=1502895657000&api=v2)
in Xero:
![](/download/attachments/18546977/image2017-8-16%2015%3A0%3A52.png?version=1&modificationDate=1502895669000&api=v2)
d. Add Invoices
![](/download/attachments/18546977/image2017-8-16%2015%3A1%3A6.png?version=1&modificationDate=1502895683000&api=v2)
5. Report data sync from woocommerce to xero
Image Added