Wechat Payment Acquirer

payment_wcpay
REPOSITORY
REPOSITORYOCA/l10n-china
GIT
GIThttps://github.com/OCA/l10n-china.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-china/tree/8.0/payment_wcpay
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYHidden
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSElico Corp
MAINTAINERS
MAINTAINERSElico Corp
COMMITTERS
COMMITTERSGitHub, Xudong Yang (Wizr), rona, noah
WEBSITE
WEBSITEhttp://www.elico-corp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:28
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_sale
    - website
    - web
    - base
    - share
    - mail
    - base_setup
    - web_kanban
    - sale
    - sales_team
    - web_kanban_sparkline
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - board
    - edi
    - email_template
    - procurement
    - payment
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cgi
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
acquirer_form_wcpay acquirer.form.wcpay payment.acquirer xpath 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 xpath Inherits payment.transaction_form
wcpay_acquirer_button wcpay_acquirer_button ir.ui.view qweb New
wcpay_confirmation wcpay_confirmation ir.ui.view qweb New
Models touched (4)

New fields (3)
  • payment_acquirer_id Many2one → payment.acquirer
    comodel_name='payment.acquirer' string='Payment Acquirer'
  • payment_tx_id Many2one → payment.transaction
    comodel_name='payment.transaction' string='Payment transaction'
  • wcpay_url_direct_pay Char
    compute='_edi_wcpay_url_direct_pay' string='Wcpay Url Direct Pay'
Public methods (0)

No public methods.

New fields (13)
  • appid Char
    help='JSAPI接口中获取openid' required_if_provider='wcpay' string='APPID'
  • appsecret Char
    help='JSAPI接口中获取openid' required_if_provider='wcpay' string='APPSECRET'
  • curl_timeout Char
    default=30 required_if_provider='wcpay' string='CURL_TIMEOUT - curl超时'
  • http_client Selection
    default='CURL' required_if_provider='wcpay' selection=[('CURL', 'CURL'), ('URLLIB', 'URLLIB')] string='HTTP_CLIENT - HTTP客户端'
  • ip_address Char
    default='127.0.0.1' required_if_provider='wcpay' string='IP Address'
  • key Char
    help='商户支付密钥' required_if_provider='wcpay' string='KEY'
  • logistics_fee Char
    required_if_provider='wcpay' string='Logistics Fee'
  • logistics_payment Char
    required_if_provider='wcpay' string='Logistics Payment'
  • logistics_type Char
    required_if_provider='wcpay' string='Logistics Type'
  • mchid Char
    help='商户ID' required_if_provider='wcpay' string='MCHID'
  • service Selection
    default='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_path Char
    help='证书路径,注意应该填写绝对路径' required_if_provider='wcpay' string='SSLCERT_PATH - 证书路径'
  • sslkey_path Char
    help='证书路径,注意应该填写绝对路径' required_if_provider='wcpay' string='SSLKEY_PATH - 证书路径'
Public methods (2)
  • wcpay_form_generate_values(self, partner_values, tx_values)
    @api.multi
  • wcpay_get_form_action_url(self)
    @api.multi

New fields (2)
  • wcpay_txn_paylink Char
    string='Transaction Pay Link'
  • wcpay_txn_tradeno Char
    string='Transaction Trade Number'
Public methods (0)

No public methods.

New fields (1)
  • wcpay_url_direct_pay Char
    compute='_edi_wcpay_url_direct_pay' string='Wcpay Pay Url Direct Pay'
Public methods (0)

No public methods.