SF Express Shipping Integration & Alipay Payment Gateway - China Commerce
by Modvanta https://modvantaapps.tech/odoo-apps/china-commerce/$ 29.91

Ship with SF Express and get paid with Alipay, from one Odoo module.
Selling to customers in China usually means two separate apps: one for the courier and one for the wallet your buyers actually use. This module is both. SF Express is a normal Odoo delivery method on the SF Open Platform (Fengqiao) API, and Alipay is a normal Odoo payment provider for the website, sales orders and invoices.
Customers see the SF price and delivery date at checkout and pay with Alipay. When you validate the delivery, SF returns the waybill and the label PDF, the courier pickup is booked, COD is collected when the order is unpaid, and the route updates itself until the parcel is signed for.
Who it is for
Shops and wholesalers in Mainland China and Hong Kong that ship with SF Express, and cross-border sellers who want Chinese buyers to pay with Alipay (Mainland Alipay in CNY, or Alipay and AlipayHK through Antom in USD, EUR, HKD and more).
SF Express shipping
LIVE PRICE + DELIVERY DATE The timeliness and price query (EXP_RECE_QUERY_DELIVERTM) gives the SF price of the chosen product for the order weight and route, converted from CNY, with the estimated delivery time. Fixed or fallback price if you prefer. | WAYBILL + LABEL PDF Validating the delivery (or "Book SF Waybill" before that) creates the SF order. The waybill number goes on the transfer and the cloud-printed label PDF is attached in the chatter. "Print SF Labels" prints again at any time. | MULTI-PARCEL Each package of the transfer becomes a parcel: one master waybill plus child waybills, each with its own label, all printable as one PDF. |
CASH ON DELIVERY The SF COD service collects the unpaid balance of the order (or orders paid with Odoo Cash on Delivery) to your COD card. Change the amount per transfer before booking. | COURIER PICKUP Ask SF to send a courier when the waybill is created (isDocall), from your pickup hour in Beijing time or a time you choose on the transfer. | ROUTE TRACKING A cron reads the SF routes every 2 hours (10 waybills per call) and on demand: every scan with time, place and SF code, and a clear status from Booked to Delivered. |
CUSTOMER EMAILS The customer receives an email when the parcel is out for delivery and when it is signed for, with the SF tracking link. | CANCEL Cancel the shipment from Odoo (EXP_RECE_UPDATE_ORDER). Booking again later uses a new SF order ID, as SF requires. | PRODUCTS + PAYMENT SF Express Priority, Standard, Next Morning, Same Day, Heavy Parcel, E-commerce Standard or any product code; sender, receiver or third party pays. Change both per transfer. |
Alipay payments
MAINLAND CHINA, RSA2 Alipay Open Platform with RSA2 (SHA256withRSA) signatures: PC website payment (page pay) or mobile website payment (wap pay), chosen automatically from the browser. | QR CODE CASHIER Full cashier page or one of the Alipay QR code modes, and the payment timeout you choose. | SIGNED NOTIFICATIONS The asynchronous notification is accepted only with a valid Alipay signature, your APPID and (optionally) your seller ID; the amount must match the order. Tampered notifications are refused. |
QUERY + RECONCILE Back from the cashier, Odoo asks Alipay for the result. A cron queries payments still waiting, in case a notification never arrived. "Query Alipay" does it by hand. | REFUNDS + CLOSE Full and partial refunds from Odoo (alipay.trade.refund, then the refund query until the money moved). Close an unpaid trade so it cannot be paid later. | ANTOM GLOBAL Cross-border account: Antom cashier payment for Alipay CN and AlipayHK in USD, EUR, HKD, GBP, SGD and more, signed notifications, inquiry, refund and cancel. Sandbox path in test mode. |
Also included
SANDBOX + PRODUCTION SF sandbox and production check words, three SF gateways (two Mainland, Hong Kong); Alipay sandbox in test mode and production when enabled. | API LOG Bookings, cancellations, payments and every error are logged with request and response, never the private keys. Old entries are purged after 30 days. | CHINESE SCREENS Every field, button and message in Simplified Chinese and Traditional Chinese, plus English. District / county field on addresses for SF. |
How it works
1 | Create the SF Express delivery method Inventory -> Configuration -> Delivery Methods -> New, provider SF Express. Enter your SF customer code, check words and monthly account, then click Test Connection. Demo mode lets you try everything first. |
2 | Configure Alipay Invoicing -> Configuration -> Payment Providers -> Alipay. Choose Mainland China or Global (Antom), paste the APPID and keys, click Check Keys, and copy the notification URL into your Alipay application. |
3 | Sell Customers pick SF Express and pay with Alipay at the website checkout, or pay a sales order or invoice through the customer portal. |
4 | Validate the delivery The SF waybill and label are created, the courier pickup is booked and COD is added when the order is unpaid. |
5 | Let it run Routes, statuses and customer emails update by themselves; refunds and payment queries are one click on the payment transaction. |
Compared with the leading SF Express and Alipay apps
| Feature | Leading apps, as advertised (two apps, about $218) | This module ($30) |
| SF price on the order, waybill, label in the chatter | Yes | Yes |
| SF product and payment method per transfer | Yes | Yes |
| Cancel, tracking link, manual route refresh | Yes | Yes |
| Scheduled route sync with status history and customer emails | No | Yes |
| Multi-parcel (child waybills), COD, insurance, courier pickup | No | Yes |
| Alipay Mainland + Antom global in one provider | Yes | Yes |
| Signed notification check and payment query | Yes | Yes |
| Refunds and closing unpaid trades from Odoo | No | Yes |
| Automatic query of unconfirmed payments | No | Yes |
| Extra Python SDK to install | Yes (alipay-sdk, pycryptodome) | None |
| Simplified and Traditional Chinese, API log, demo mode | Chinese / not stated | Yes |
Screenshots









FAQ
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Inventory (stock) |
| Lines of code | 2504 |
| Technical Name |
mdv_china_commerce |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/china-commerce/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module