wp-woocommerce-pay/inc/easypay_part.php
feibisi daf7932d59
Some checks are pending
gitleaks 密钥泄露扫描 / gitleaks (push) Waiting to run
feicode/ai-security No obvious risky pattern in latest diff
WordPress 插件 CI / ci (push) Successful in -8h1m15s
fix: phpcbf 自动修复 + phpcs.xml 代码规范配置
- phpcbf 自动修复 3893 处格式问题
- 添加 phpcs.xml 排除不适用的规则
- 安全相关规则降级为 warning 保持可见

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-18 15:19:03 +08:00

37 lines
1.6 KiB
PHP
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<blockquote class="alert alert-primary" style="background-color: gold; color: black;">
还没有账号?直接注册 <a style='margin-left:16px' href="https://payments.weithemes.com/" target="_blank" class="btn btn-primary">立即注册</a>
</blockquote>
<div class="card-header">支付设置</div>
<div class="card-body">
<form id="easypay-keepset-form">
<div class="form-group">
<label for="easypay_id">商户 ID</label>
<input type="text" class="form-control" name="easypay_id" id="easypay_id" required placeholder="一般为5位或以上纯数字" value="<?php echo get_option( 'easypay_app_id' ); ?>" autocomplete="off">
</div>
<div class="form-group">
<label for="easypay_key">商户秘钥:</label>
<input type="text" class="form-control" name="easypay_key" id="easypay_key" required placeholder="请输入商户秘钥" value="<?php echo get_option( 'easypay_app_key' ); ?>" autocomplete="off">
</div>
<div class="form-group">
<label for="easypay_return_url">跳转地址:</label>
<input type="text" class="form-control" name="easypay_return_url" id="easypay_return_url" required value="
<?php
if ( get_option( 'easypay_return_url' ) == '' ) {
echo home_url() . '/my-account/orders';
} else {
echo get_option( 'easypay_return_url' );}
?>
">
<small class="form-text text-muted">用户支付成功后跳转到该地址</small>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">保存</button>
<button type="reset" class="btn btn-secondary">重置</button>
</div>
</form>
</div>