【发布时间】:2017-04-08 12:08:21
【问题描述】:
我在使用 php api 库 v 4.2.0 设置条带插件时在后端收到此错误。
注意:未定义的索引:在第 80 行的 /home/public_html/wp-content/plugins/wordpress-stripe-integration/includes/settings.php 中重复 /> 选中此项以允许用户设置定期付款。
我的 settings.php 重复代码是
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row" valign="top">
<?php _e('Allow Recurring', 'pippin_stripe'); ?>
</th>
<td>
<input id="stripe_settings[recurring]" name="stripe_settings[recurring]" type="checkbox" value="1" <?php checked($stripe_options['recurring'], 1); ?>/>
<label class="description" for="stripe_settings[recurring]"><?php _e('Check this to allow users to setup recurring payments.', 'pippin_stripe'); ?></label>
</td>
</tr>
</tbody>
</table>
我的 shortcode.php 代码是
<?php if(isset($stripe_options['recurring'])) { ?>
<div class="form-row">
<label><?php _e('Payment Type:', 'pippin_stripe'); ?></label>
<input type="radio" name="recurring" value="no" checked="checked"/><span><?php _e('One time payment', 'pippin_stripe'); ?></span>
<input type="radio" name="recurring" value="yes"/><span><?php _e('Recurring monthly payment', 'pippin_stripe'); ?></span>
</div>
<?php } ?>
单选按钮应该在结帐页面上可见,但不可见。我是 php 的初学者,所以任何帮助都会得到帮助。谢谢
【问题讨论】:
标签: php wordpress stripe-payments