Step 3 – Configure Magento

1. Log into your Magento store backend. Go to System > Configuration > Fooman Connect

2. Set up the fields shown below, then click ‘Save Config’:

Serial Number (v1.4.0+) - only required for the monthly subscription version

Paste your Fooman Connect serial number found in the order pdf attached to your original order confirmation email. Example serial number:


If you are updating from an older version of Fooman Connect, access your serial number by logging to the  My Account section of the Fooman website. Click on "Your Orders", and then click "Print Order". A pdf document will be generated which contains your serial number.

Enabled (v1.1.0+)

Select “Yes” to enable Fooman Connect.

Consumer Key/Consumer Secret (v1.1.0+)

Copy and paste the Xero Oauth Consumer Key and Consumer Secret from  step 2 into these fields.

Private Key (v1.1.0+)

This will be automatically populated from  step 1. If you chose to use your own SSL certificate, paste the private key name here.

Password of Private Key (v1.1.0+)

Leave this field empty if you followed the directions in  step 1. If you chose to use your own SSL certificate, paste the password of the private key here. 

3. Magento will now connect to Xero to retrieve your organisation's information like account codes and tax rates. Once your information has been retrieved from Xero, configure the remaining fields in the backend, and click save configuration.  

Xero Version (v1.1.0+)

Select the Xero version you are using from the drop down list.

Use Xero Numbers (v1.2.0+)

When set to "Yes", orders/credit memos exported to Xero will use the Xero assigned number rather than the Magento assigned number.  

Prefer Company as Contact (v2.0)

When set to "Yes" and the billing address contains a company this will be used as the contact name in Xero instead of First Name + Last Name of the customer.

Transfer Currency (v1.1.0+)

Choose to export orders/credit memos in store base currency or order currency.

Tracking (v1.1.0+)

Use this optional setting if you already use tracking categories in Xero and want to track your online sales channel. Choose a tracking option to record online transactions exported to Xero.

Enable Logging (v1.1.0+)

When set to “Yes”, and when you also enable Magento logging under System > Configuration > Developer > Log Settings, log messages will be written to /var/log/xero.log

Enable Reset (v1.1.0+)

When set to “Yes”, an extra button will be created on the Fooman Connect: Xero pages allowing you to reset the export status and link to the invoice/credit memo in Xero (for example, after finishing test exports to a Xero demo company).

Sales Account (v1.1.0+)

Select the Xero account where you want to record sales. This setting applies on a per store level, and can be manually overridden on an individual product level by doing the following:

  • Go to Catalog > Manage Products
  • Click into the product that you wish to individually configure a different Xero Sales Account for
  • In the newly added field “Xero Sales Account Code”, select the Xero account where you want to record sales for this item
  • Repeat for every product you wish to manually override


Shipping Account (v1.1.0+)

Select the Xero account where you want to record shipping.

Refund Account (v1.4.0+)

Select the Xero account where you want to record refunds.

Surcharge Amount (v1.1.0+)

This setting is only available if you are also using the Fooman Surcharge extension. Select the Xero account where you want to record surcharges.

Tax Calculation (v.2.0.0)

Choose your preferred option for calculating tax:

  • Magento Calculated = take Magento's value directly - requires it to calculate exactly like Xero to not get rejected
  • Magento re-calculated = attempt to bridge the gap by creating rounding entries
  • Xero re-calculated = let Xero recalculate completely based on the line total, could change qty to 1 if unit amounts with more than 3 digits can't be aligned

Why do I need to choose this? Unfortunately Magento and Xero do not always agree on how to calculate taxes. Differences in the 2 systems exist in tax, rounding, bugs, etc, which can occasionally cause Xero to reject any data which does not match its expectations.

Default Tax Rate for None Taxed Items (v1.1.0+)

Select the tax rate to use when the item has no other tax rule applied and the tax amount is zero.

Shipping Tax (v1.1.0+)

Choose your shipping tax rate.

Surcharge Tax (v1.1.0+)

This setting only has effect if you are also using the Fooman Surcharge extension. Choose your surcharge tax rate.

Export Mode (v2.0+)

The integration can either work by exporting Magento orders to Xero invoices (useful if Magento does not create the invoices straight away and with delayed payments) or by exporting Magento invoices to Xero invoices.

Export Orders/Invoices with Status (v1.1.0+)

Choose which status/statuses will trigger export to Xero. Different status options are available depending on which export mode you chose (Magento Order to Xero Invoice or Magento Invoice to Xero Invoice).

The first time a new order/invoice reaches this status, it will be exported to Xero. Multiple statuses can be selected, as each one will only be exported once.

Choose the status/statuses that best match the workflow of your payment methods and corresponds to money hitting your Xero accounts. Choosing to export orders with 'complete' status will be sufficient for most store's needs. However, please note that your payment method may use a different workflow to standard Magento so you should consider this.  Compare your payment method workflow to standard Magento workflows.

All credit memos are automatically exported when created.

Status in Xero (v2.1.15+)

Initial status of the invoice when exported to Xero:

  • Draft: Invoices need approval in Xero before payments can be reconciled against them (this can be done in bulk). Invoices will appear in Xero under "Draft", and may be deleted if you choose.
  • Authorised: Payments can be reconciled with no approval/further action required. Invoices will appear in Xero under "Awaiting Payment", and can only be voided (not deleted).

Delete/Void Invoices (v2.1.49+)

When set to “Yes”, when you cancel an order or invoice in Magento the corresponding invoice in Xero will automatically be deleted or voided (if the invoice had already been approved in Xero).

Create Payment (v2.1.49+)

This setting is only available when "Status in Xero" is set to "Authorised".

When set to “Yes”, a Xero payment into your chosen bank and/or Paypal account (you must select these below) will be automatically created for the full amount of the invoice.

This feature is great to use when the whole Magento invoice amount (e.g. sale worth $49) hits your bank account (e.g. $49 deposited). All that’s left for you to do is to reconcile the bank statement line in Xero.

We don’t recommend using this feature if the Magento invoice amount is different to the sum that actually hits your bank account. In these cases, we recommend reconciling the invoices directly to the bank statement line for the deposit and Xero will automatically create the payment for you. Examples:

  • From a $49 sale, only $48.50 is deposited into your bank account after payment processing fees are deducted, or
  • The amount paid combined multiple Magento orders - e.g. $196 is deposited covering 4x $49 Magento orders received that day

Bank Account for Payment (v2.1.49+) - if using Create Payment feature

If you’ve set “Create Payment” to yes, choose the bank account the money is deposited into for the invoice payments (includes bank deposits and credit card transactions).

Bank Account for Paypal (v2.1.49+) - if using Create Payment feature

If you’ve set “Create Payment” to yes, choose the Paypal account the money is deposited into for the invoice payments (only use for Paypal transactions).

Show Xero Payments on View Page (v1.1.0+)

When set to “Yes”, a new box called “Fooman Connect” will be created in each individual order view page in Magento. This will show:

  • If the order/credit memo has been exported to Xero
  • If and on which date payment has been received (when the payment has been reconciled in Xero)

Export Orders with Zero Amounts (v1.1.0+)

When set to “Yes”, zero amount orders (free products/items) will also be exported to Xero.

Start Date (v1.2.0+)

If you wish to backdate automatic exporting of orders, enter a date in this field. Dates should be entered in UTC (GMT) format. If no date is entered, automatic exporting will commence from the time of the process being set up and will not be backdated. 

Start Date (v1.2.0+)

If you wish to backdate automatic exporting of orders, enter a date in this field. Dates should be entered in UTC (GMT) format. If no date is entered, automatic exporting will commence from the time of the process being set up and will not be backdated.

Credit Note Prefix (v1.2.0+)

Enter your chosen prefix to differentiate credit memo numbers from order numbers. While these numbers are the same in Magento, Xero requires these numbers to be unique.

Status in Xero (v2.1.15+)

Initial status of the credit memo when exported to Xero:

  • Draft: Credit memos need approval in Xero before refunds can be reconciled against them (this can be done in bulk). Credit memos will appear in Xero under "Draft" and may be deleted if you choose.
  • Authorised: Payments can be reconciled with no approval/further action required. Credit memos will appear in Xero under "Awaiting Payment", and can only be voided (not deleted).

Create Cash Refund 

This setting is only available when "Status in Xero" is set to "Authorised".

When set to “Yes”, a Xero payment from your chosen bank and/or Paypal account (you must select these below) will be automatically created for the full amount of the credit memo.

This feature is great to use when the whole Magento credit memo amount (e.g. sale worth $49) is taken from your bank account. All that’s left for you to do is to reconcile the bank statement line in Xero.

We don’t recommend using this feature if the Magento credit memo amount is different to the sum that actually hits your bank account. In these cases, we recommend reconciling the credit notes directly to the bank statement line for the deposit and Xero will automatically create the payment for you. Examples:

  • From a $49 sale, only $48.50 is refunded from your bank account after payment processing fees are deducted, or
  • The amount refunded is combined with multiple Magento orders - e.g. $196 is paid covering 4x $49 Magento refunds that day

Bank Account for Cash Refund 

This setting is only available when "Status in Xero" is set to "Authorised" and "Create Cash Refund" is set to Yes.

If you’ve set “Create Cash Refund” to yes, choose the bank account the money is deposited into for the invoice payments (includes bank deposits and credit card transactions).

Bank Account for Paypal Refunds 

This setting is only available when "Status in Xero" is set to "Authorised" and "Create Cash Refund" is set to Yes.

If you’ve set “Create Cash Refund” to yes, choose the Paypal account the money is deposited into for the invoice payments (only use for Paypal transactions).

NEXT STEP: MAP TAX RATES

Still need help? Contact Us Contact Us