mediabeastnz/craft-commerce-xero
Composer 安装命令:
composer require mediabeastnz/craft-commerce-xero
包简介
README 文档
README
Xero plugin for Craft Commerce 2
ALERT: This plugin has been deprecated in favour of Xero for Craft Commerce 2 & 3 that supports OAuth 2.0.
This plugin is no longer maintained and is for those still using the deprecated OAuth1.0a method of connecting to Xero.
All new issues and pull requests should be created on the new repository.
Overview
NOTE: 👨💻This plugin is stable and fine to use in production however it's in active development so expect frequent updates while new features are added until v1.0.0.
This plugin allows you to automatically send Commerce invoices into Xero including contacts, payments and even inventory updates.
You'll need to create a private application within Xero and then connect via OAuth using a consumer key, consumer secret and private (self signed) certificate.
You'll also need a Certificate store which can be downloaded from this repo for ease of use. It's generated from Firefox's own Cert store and updated often. see here
Once connected the plugin allows you to map your Chart of Accounts (Account Codes) including:
- sales revenue
- accounts receivable
- shipping/develiery
- rounding
By default all fully paid orders will be pushed into the queue (you'll need to ensure you're processing the queue freqeuently) with a delay of 30 seconds (this is reduce the time customers spend waiting for their order to process) and then once the queue has dispatched the job, the invoice will be sent to Xero.
If you need to send existing orders to Cero you can do so by viewing an order and you'll see a "Send to Xero" button which will instantly send the order off to Xero. This button also currently acts as a way to see if an order is already in Xero.
What fields are sent to Xero
Below is a list of fields that is sent to Xero. In future versions hooks/events will be avaialbe if you require more information to be sent.
Contact
- first name
- last name
Order
- status (AUTHORISED)
- type (ACCREC)
- contact (as above)
- LineAmountType (Exclusive) (future versions will be configurable)
- Invoice Number (order referrence)
- SentToContact (invoices are marked as sent)
- Due Date (now)
Line Items
- account code (sales)
- description (product tile)
- quantity
- unit amount (item total)
- Item Code (sku) (if inventory is enabled)
Shipping adjustments
- same as above but account is set to you defined shipping account.
Payment
- account (receivable account)
- reference (order transaction reference)
- amount (total paid amount)
- date (date paid)
Rounding
Due to how different systems calculate rounding if for whatever reason the order total is different to what Xero calculates, an additional line item to account for rounding is added in Xero. Please ensure you have this account code selected under settings.
Multi environment settings
If you require different settings per environment the plugin ships with an example config file xero-config.php which should be copied into your config folder and renamed to xero.php. Once this is in place you r can define all the plugins settings for each environment.
Note if this file exists all settings will then be read from this file instead of whats in Craft.
More detailed documentation to coming soon.
Feature requests 🙏
As this plugin is still in active development now is a good time to suggest new features. Feel free to contact me via email or create a GitHub issue.
Roadmap 🚀
- Improve documentation
- Configure Crafts new testing framework to ensure new features don't cause unexpected issues.
- Add multiple hooks/events so developers can further extend if required
- Refunds support
- Admin features like element actions, widgets and different syncing methods
Installation
Either by the plugin store (search "Xero") or via composer.
"thejoshsmith/craft-commerce-xero": "^0.9.3"
Requirements
This plugin requires Craft CMS 3.1.0 or later and Craft Commerce 2.0 or later.
mediabeastnz/craft-commerce-xero 适用场景与选型建议
mediabeastnz/craft-commerce-xero 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 568 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 07 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cms」 「invoice」 「xero」 「Craft」 「craftcms」 「craft-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mediabeastnz/craft-commerce-xero 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediabeastnz/craft-commerce-xero 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mediabeastnz/craft-commerce-xero 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel wrapper for Xero
GraphQL authentication for your headless Craft CMS applications.
An extension for using the Xero API from within Yii2
Symfony bundle wrapping the XeroPHP library
Set Links with a specific language parameter
Easy invoice generation using Laravel Eloquent
统计信息
- 总下载量: 568
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-07-20