7 |
13 |
14 |
15 |
17 | textbox( 'shortcode_name', 'regular-text' ); ?>
19 |
20 |
21 |
22 |
24 | textbox( 'button_name', 'regular-text' );
26 | $ppp_options->description( '支付按钮的文本' );?>
27 |
28 |
29 |
30 |
31 | textbox( 'success_redirect_url', 'regular-text' );
33 | $ppp_options->description( '支付成功后, 跳转到的地址' );
34 | ?>
35 |
36 |
37 |
38 |
39 | selectbox( 'default_channel', array(
41 | '支付宝即时到账' => 'alipay_pc_direct',
42 | '微信公众号扫码' => 'wx_pub_qr',
43 | '银联网关支付' => 'upacp_pc',
44 | '企业网银支付' =>'cp_b2b')
45 | );
46 | $ppp_options->description( '默认使用的支付渠道' );
47 | ?>
48 |
49 |
50 |
51 |
52 | checkbox( 'always_enqueue' ); ?>
53 | 在每个页面加载插件所需脚本
54 |
55 |
56 |
57 |
58 | checkbox( 'selectable' ); ?>
59 | 允许用户选择支付方式
60 |
61 |
62 |
63 |
64 | checkbox( 'show_channel_alipay_pc_direct' ); ?>支付宝即时到账
65 | checkbox( 'show_channel_wx_pub_qr' ); ?>微信公众号扫码
66 | checkbox( 'show_channel_upacp_pc' ); ?>银联网关支付
67 | checkbox( 'show_channel_cp_b2b' ); ?>企业网银支付
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/pingpp/views/admin-main-tab-pingpp-keys.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 | checkbox( 'live_mode' ); ?> Live/Test模式 (勾选时产生真实的交易)
11 |
12 |
13 |
14 |
16 | textbox( 'app_id', 'regular-text' ); ?>
17 |
18 |
19 |
20 |
22 | textbox( 'test_secret_key', 'regular-text' ); ?>
23 |
24 |
25 |
26 |
28 | textbox( 'live_secret_key', 'regular-text' ); ?>
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/pingpp/views/admin-main.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |