Wechat Payment Acquirer
payment_wcpay · OCA/l10n-china
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 114 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis
9 migration notes
4 models
6 views
8 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
AccountInvoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceAcquirerWcpay— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceSaleOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceacquirer_form_wcpay— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.edi`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.edi`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.report.controllers.main`) (5 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.addons.payment.models.payment_acquirer`) (3 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
acquirer_form_wcpay |
acquirer.form.wcpay | payment.acquirer | form | Inherits payment.acquirer_form |
assets_frontend |
Shop | ir.ui.view | qweb | Inherits website.assets_frontend |
confirmation |
confirmation | ir.ui.view | qweb | Inherits payment_wcpay.wcpay_confirmation |
transaction_form_wcpay |
acquirer.transaction.form.wcpay | payment.transaction | form | Inherits payment.transaction_form |
wcpay_acquirer_button |
wcpay_acquirer_button | ir.ui.view | qweb | New |
wcpay_confirmation |
wcpay_confirmation | ir.ui.view | qweb | New |
HTTP endpoints 8
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/shop/confirmation, /shop/confirmation/so/<int:sale_order_id>, /shop/confirmation/ai/<int:account_invoice_id> |
WcpayController.payment_confirmation |
public | http | ALL | website |
/shop/payment/get_status_ai/<int:account_invoice_id> |
WcpayController.payment_get_status_ai |
public | json | ALL | website |
/shop/payment/get_status_so/<int:sale_order_id> |
WcpayController.payment_get_status_so |
public | json | ALL | website |
/report/barcode, /report/barcode/<type>/<path:value> |
WcpayController.report_barcode |
public | http | ALL | |
/payment/weixin/notify |
WcpayController.weixin_notify |
none | http | POST | |
/shop/payment/transaction/<int:acquirer_id> |
website_sale.payment_transaction |
public | json | ALL | website |
/shop/payment/transaction_ai/<int:acquirer_id> |
website_sale.payment_transaction_for_ai |
public | json | ALL | website |
/shop/payment/transaction_so/<int:acquirer_id> |
website_sale.payment_transaction_for_so |
public | json | ALL | website |
Models touched 4
New fields (3)
-
payment_acquirer_idMany2one → payment.acquirercomodel_name='payment.acquirer'string='Payment Acquirer' -
payment_tx_idMany2one → payment.transactioncomodel_name='payment.transaction'string='Payment transaction' -
wcpay_url_direct_payCharcompute='_edi_wcpay_url_direct_pay'string='Wcpay Url Direct Pay'
No public methods.
New fields (13)
-
appidCharhelp='JSAPI接口中获取openid'required_if_provider='wcpay'string='APPID' -
appsecretCharhelp='JSAPI接口中获取openid'required_if_provider='wcpay'string='APPSECRET' -
curl_timeoutChardefault=30required_if_provider='wcpay'string='CURL_TIMEOUT - curl超时' -
http_clientSelectiondefault='CURL'required_if_provider='wcpay'selection=[('CURL', 'CURL'), ('URLLIB', 'URLLIB')]string='HTTP_CLIENT - HTTP客户端' -
ip_addressChardefault='127.0.0.1'required_if_provider='wcpay'string='IP Address' -
keyCharhelp='商户支付密钥'required_if_provider='wcpay'string='KEY' -
logistics_feeCharrequired_if_provider='wcpay'string='Logistics Fee' -
logistics_paymentCharrequired_if_provider='wcpay'string='Logistics Payment' -
logistics_typeCharrequired_if_provider='wcpay'string='Logistics Type' -
mchidCharhelp='商户ID'required_if_provider='wcpay'string='MCHID' -
serviceSelectiondefault='create_direct_pay_by_user'required_if_provider='wcpay'selection=[('create_direct_pay_by_user', 'create_direct_pay_by_user'), ('create_partner_trade_by_buyer', 'create_partner_trade_by_buyer')]string='Payment Type' -
sslcert_pathCharhelp='证书路径,注意应该填写绝对路径'required_if_provider='wcpay'string='SSLCERT_PATH - 证书路径' -
sslkey_pathCharhelp='证书路径,注意应该填写绝对路径'required_if_provider='wcpay'string='SSLKEY_PATH - 证书路径'
-
wcpay_form_generate_values(self, partner_values, tx_values)@api.multi -
wcpay_get_form_action_url(self)@api.multi
New fields (2)
-
wcpay_txn_paylinkCharstring='Transaction Pay Link' -
wcpay_txn_tradenoCharstring='Transaction Trade Number'
No public methods.
New fields (1)
-
wcpay_url_direct_payCharcompute='_edi_wcpay_url_direct_pay'string='Wcpay Pay Url Direct Pay'
No public methods.