Changeset 3720550
- Timestamp:
- 09/30/2026 07:30:56 AM (3 weeks ago)
- Location:
- whalet-payment/trunk
- Files:
-
- 6 edited
-
admin/settings.php (modified) (1 diff)
-
assets/js/whalet-postmessage-init.js (modified) (1 diff)
-
includes/handlers/class-whalet-config-processor.php (modified) (1 diff)
-
includes/handlers/class-whalet-payment-processor.php (modified) (2 diffs)
-
templates/whalet-checkout.php (modified) (1 diff)
-
woocommerce/card/class-wc-gateway-card.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
whalet-payment/trunk/admin/settings.php
r3447036 r3720550 254 254 255 255 // New Fields Defaults 256 'cards_title' => __('Card Payment', 'whalet-payment'),257 'cards_description' => __('Pay with your credit or debit card; Secure and Fast', 'whalet-payment'),256 'cards_title' => 'Cards', 257 'cards_description' => 'Fast and Secure Payment with Whalet Cards', 258 258 'cards_enabled' => 0, 259 259 260 'local_title' => __('Whalet Pay', 'whalet-payment'),261 'local_description' => __('Pay via Whalet; Secure and Fast', 'whalet-payment'),260 'local_title' => 'Pay with cards and more', 261 'local_description' => 'Fast and Secure Payment with Whalet', 262 262 'local_enabled' => 0, 263 263 ); -
whalet-payment/trunk/assets/js/whalet-postmessage-init.js
r3380114 r3720550 104 104 .filter((method) => method.methodType === "Cards") 105 105 .map((method) => ({ 106 paymentMethod: method.methodCode, 106 paymentMethod: method.methodCode, // 这个字段相当于 网关接口端的 paymentMethodCode 107 107 paymentMethodType: method.methodType.toUpperCase(), 108 108 networks: [], 109 brand: method.brand 109 brand: method.brand, 110 rawData: method?.rawData || {} 110 111 })); 111 112 } -
whalet-payment/trunk/includes/handlers/class-whalet-config-processor.php
r3447036 r3720550 101 101 'display_name' => $payment_method_key, 102 102 'countries' => $method['country'], 103 'currencies' => $method['currency'] 103 'currencies' => $method['currency'], 104 // rawData 105 'rawData' => $method, 104 106 ); 105 107 } -
whalet-payment/trunk/includes/handlers/class-whalet-payment-processor.php
r3447036 r3720550 292 292 'order_id' => $order->order_id, 293 293 // tradeUniId 用于唯一标识支付交易 它是 $order->gateway_payment_url 的 /pay/ 后面的一段字符串,请你帮我获取 tradeUniId,直接使用 $tradeUniId 294 'tradeUniId' => $tradeUniId, 294 'tradeUniId' => $order->gateway_payment_id ?: $tradeUniId, 295 'tradeId' => $order->gateway_payment_id, 296 'linkUniId' => $tradeUniId, 295 297 // 从 metadata 中获取 email 296 298 'email' => $email, … … 371 373 'amount' => $order_data['amount'], 372 374 'currency' => $order_data['currency'], 373 'tradeUniId' => $gateway_result['trade UniId'],375 'tradeUniId' => $gateway_result['tradeId'] ?? $gateway_result['tradeUniId'], 374 376 'email' => $gateway_result['customerEmail'], 375 377 'country' => $order_data['billingAddress']['country'], -
whalet-payment/trunk/templates/whalet-checkout.php
r3447036 r3720550 138 138 scrolling="auto" 139 139 allow="payment" 140 sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" 140 141 src="<?php echo esc_url($gateway_payment_url) . '?isWooCommerce=true'; ?>" 141 142 > -
whalet-payment/trunk/woocommerce/card/class-wc-gateway-card.php
r3447036 r3720550 293 293 scrolling="no" 294 294 id="whalet-card-iframe" 295 sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" 295 296 > 296 297 </iframe>';
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)