Woo Alipay Fund Authorization Payments 资金预授权/保证金扩展。与 WooCommerce 集成,让用户可以通过预授权租赁形式支付。
This repository has been archived on 2026-04-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
feibisi 3c2f93c3e3 Add Alipay fund authorization plugin for WooCommerce
Initial implementation of a WooCommerce payment gateway plugin supporting Alipay fund authorization (preauth), including fund freeze, capture, and unfreeze features. Adds gateway registration, WooCommerce Blocks support, admin actions for capture/unfreeze, and frontend assets. Includes documentation and plugin bootstrap.
2025-10-05 00:00:37 +08:00
inc Add Alipay fund authorization plugin for WooCommerce 2025-10-05 00:00:37 +08:00
js/frontend Add Alipay fund authorization plugin for WooCommerce 2025-10-05 00:00:37 +08:00
bootstrap.php Add Alipay fund authorization plugin for WooCommerce 2025-10-05 00:00:37 +08:00
LICENSE Initial commit 2016-03-16 02:15:10 +08:00
README.md Add Alipay fund authorization plugin for WooCommerce 2025-10-05 00:00:37 +08:00
woo-alipay-fund-auth.php Add Alipay fund authorization plugin for WooCommerce 2025-10-05 00:00:37 +08:00

Woo Alipay - Fund Authorization (Preauth)

一个为 WooCommerce 设计的支付宝资金预授权插件,支持资金冻结、解冻和转支付功能。

功能特性

  • 资金预授权:支持支付宝资金预授权(冻结)功能
  • 灵活扣款:支持多次扣款和全额扣款
  • 资金解冻:支持手动和自动解冻未使用的预授权资金
  • 自动处理:订单完成时自动扣款,订单取消时自动解冻
  • WooCommerce 兼容:完全兼容 WooCommerce 和 WooCommerce Blocks
  • 管理界面:在 WooCommerce 后台提供便捷的管理操作

系统要求

  • WordPress 5.0+
  • WooCommerce 3.0+
  • Woo Alipay 基础插件(必须先安装并启用)

安装方法

  1. 确保已安装并启用 Woo Alipay 基础插件
  2. 将插件文件上传到 /wp-content/plugins/woo-alipay-fund-auth/ 目录
  3. 在 WordPress 后台启用插件
  4. 在 WooCommerce 设置中配置支付宝预授权参数

配置说明

启用插件后,请在以下位置进行配置:

  1. 进入 WooCommerce > 设置 > 支付 > Alipay Fund Authorization
  2. 配置相关参数:
    • 启用/禁用支付方式
    • 标题和描述
    • 自动扣款设置
    • 自动解冻设置

使用方法

前台使用

客户在结账页面选择支付宝预授权支付方式,系统会引导客户完成资金预授权流程。

后台管理

在 WooCommerce 订单页面,管理员可以:

  • 查看预授权状态和金额
  • 手动扣款(部分或全额)
  • 手动解冻资金
  • 查看操作记录

工作流程

  1. 预授权:客户下单时进行资金预授权(资金被冻结)
  2. 扣款:订单完成后自动或手动扣款
  3. 解冻:剩余资金自动或手动解冻

技术支持

许可证

本插件遵循 WordPress GPL v2 或更高版本许可证。

更新日志

0.1.0

  • 初始版本发布
  • 支持基本的资金预授权功能
  • 支持自动和手动扣款/解冻