Basic tools to integrate Odoo and WeChat.
Buyer presents the pay code, Vendor scans the code to finish the transaction.
The Vendor gets one-time url and shows it to Buyer as a QR Code, Buyer scans to finish the transaction.
There are two types of usage:
- In-App Web-based Payment -- The Payer opens the Vendor's HTML5 pages on their WeChat and calls the WeChat payment module via the JSAPI interface to pay their transaction. Client side of this process (i.e. web pages) is not supported. While it could be implemented as additional module, we recommend to develop Mini programs instead.
- Mini program -- an application as a part of WeChat App is created via WeChat Developer tools.
This payment way is only for native mobile application. This module provides server part of the process.
- API Debug Console https://open.wechat.com/cgi-bin/newreadtemplate?t=overseas_open/docs/oa/basic-info/debug-console
- Creating Test Accounts https://admin.wechat.com/debug/cgi-bin/sandbox?t=sandbox/login
- Note: it may not work from non-chinese IP addresses
- You will get
appid
andappsecret
values - To work with WeChat payments you also need Merchant ID, which this sandbox
doesn't provide. It seems, that to work with Payments you need a real
account and use sandbox mode (System Parameter
wechat.sandbox
).
To debug UI, create System Parameter wechat.local_sandbox
with value 1
. All requests to wechat will return fake result without making a request.
- It seems that in sandbox mode it's allowed to use only prices
1.01
and1.02
.
To get an assistance on this module contact us by email ➡️ help@itpp.dev
Odoo Apps Store: https://apps.odoo.com/apps/modules/12.0/wechat/
Tested on Odoo 12.0