精彩评论
- 张麻子是杂种(4个月前 (12-09))
从有人以来就没有比张麻子更邪恶 张口闭口为人民,害死几千万人还为人民,为自己的皇位还差不多,...
评:深度解析《让子弹飞》 al2359(3年前 (2023-02-06))
求科学离线插件,谢谢!34401355@qq.com
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程al2359(3年前 (2023-02-06))
求科学离线插件,谢谢!!!
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程
# 将插件文件夹上传到 WordPress 插件目录 /wp-content/plugins/stripe-wp-gateway/
|
设置项
|
说明
|
示例
|
|---|---|---|
|
显示在订购表格上
|
是否在结账页面显示此支付方式
|
✓ 已启用
|
|
显示称号
|
支付方式名称
|
Stripe Payment Gateway
|
|
Stripe 秘密密钥
|
SK_LIVE 密钥
|
sk_live_...
|
|
Stripe 发布密钥
|
PK_LIVE 密钥
|
pk_live_...
|
|
Webhook 密钥
|
Webhook 签名密钥
|
whsec_...
|
|
收款货币
|
支持的货币列表
|
USD, EUR, GBP, CNY 等
|
|
手续费百分比
|
交易手续费百分比
|
2.9
|
|
固定手续费
|
固定交易费用
|
0.3
|
|
启用 3D Secure
|
是否启用 3D 验证
|
✓ 已启用
|
|
启用 Alipay
|
是否启用支付宝
|
✓ 已启用
|
|
启用 WeChat Pay
|
是否启用微信支付
|
✓ 已启用
|
|
启用 Stripe Link
|
是否启用 Stripe Link
|
✓ 已启用
|
CREATE TABLE stripe_payments (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
order_id BIGINT NOT NULL,
stripe_charge_id VARCHAR(255) UNIQUE NOT NULL,
stripe_payment_intent_id VARCHAR(255),
amount DECIMAL(10, 2) NOT NULL,
currency VARCHAR(3) NOT NULL,
payment_method VARCHAR(50),
status VARCHAR(50),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
CREATE TABLE stripe_refunds (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
payment_id BIGINT NOT NULL,
order_id BIGINT NOT NULL,
stripe_refund_id VARCHAR(255) UNIQUE NOT NULL,
amount DECIMAL(10, 2) NOT NULL,
reason VARCHAR(255),
status VARCHAR(50),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE stripe_webhook_logs (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
event_id VARCHAR(255) UNIQUE NOT NULL,
event_type VARCHAR(100),
payload LONGTEXT,
status VARCHAR(50),
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
do_action('stripe_wp_gateway_charge_succeeded', $order, $charge);
do_action('stripe_wp_gateway_payment_intent_succeeded', $order, $intent);
do_action('stripe_wp_gateway_payment_intent_failed', $order, $intent);
do_action('stripe_wp_gateway_charge_refunded', $order, $charge);
do_action('stripe_wp_gateway_checkout_completed', $order, $session);
// 在 initPaymentMethods() 函数中添加
html += '<label class="payment-method-option">';
html += '<input type="radio" name="stripe_payment_method" value="new_method" />';
html += '<span class="method-label">New Payment Method</span>';
html += '</label>';
// 在 handleCheckoutSubmit() 函数中添加处理逻辑
} else if (selectedPaymentMethod === 'new_method') {
result = await handleNewMethod(paymentIntentData.client_secret);
}
VmShell支付插件地址:https://linuxword.com/wp-content/uploads/2026/03/vmshell-stripe-payment-v1.0.0-complete.zip
「梦想一旦被付诸行动,就会变得神圣,如果觉得我的文章对您有用,请帮助本站成长」
从有人以来就没有比张麻子更邪恶 张口闭口为人民,害死几千万人还为人民,为自己的皇位还差不多,...
评:深度解析《让子弹飞》求科学离线插件,谢谢!34401355@qq.com
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程求科学离线插件,谢谢!!!
评:改版梅林固件安装SS【shadowsocks】科学上网插件教程