関数
SettlementSettings::extraSettings( array $acting_opts )
Add Amazon Pay specific extra settings
パラメータ パラメータ
- $acting_opts
(配列) (必須)
ファイル: src/Admin/SettlementSettings.php
protected function extraSettings($acting_opts) { (new Semantic())->loadIconCss(); ?> <!-- <div class="settlement_service"> <span class="service_title"> <?php // echo esc_html__('IPN', 'wcexaap'); ?> </span> </div> <table class="settle_table aivec"> <tr> <th> <div style="display: flex; flex-flow: row nowrap; align-items: center;"> <a class="explanation-label" id="label_ex_ipn_endpoint_amazon"> <?php // echo esc_html__('IPN Endpoint', 'wcexaap'); ?> </a> <?php if ($acting_opts['ipn_verified'] === true) : ?> <i class="green check circle icon" style="margin-left: 8px;"></i> <?php endif; ?> </div> </th> <td> <?php // $ipn = new IPNEndpointRegistration($this->module); // echo $ipn->getVueMountElement(); // $ipn->loadComponent(); ?> </td> </tr> <tr id="ex_ipn_endpoint_amazon" class="explanation"> <td colspan="2"> <?php // echo esc_html__('Register your URL to recieve instant payment notifications.', 'wcexaap'); ?> </td> </tr> </table> --> <div class="settlement_service"> <span class="service_title"> <?php echo esc_html__('QuickPay', 'wcexaap'); ?> </span> </div> <table class="settle_table aivec"> <tr class="radio"> <th><?php echo esc_html__('QuickPay', 'wcexaap'); ?></th> <td> <div> <label> <input name="use_quickpay" type="radio" id="use_quickpay_1" value="on" <?php echo $acting_opts['use_quickpay'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Enable', 'wcexaap'); ?></span> </label> <label> <input name="use_quickpay" type="radio" id="use_quickpay_2" value="off" <?php echo $acting_opts['use_quickpay'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Disable', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr class="radio"> <th><?php echo esc_html__('Quickpay button placement', 'wcexaap'); ?></th> <td> <div> <label> <input name="quickpay_btn_position" type="radio" id="quickpay_btn_position_1" value="below" <?php echo $acting_opts['quickpay_btn_position'] === 'below' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Below cart button', 'wcexaap'); ?></span> </label> <label> <input name="quickpay_btn_position" type="radio" id="quickpay_btn_position_2" value="above" <?php echo $acting_opts['quickpay_btn_position'] === 'above' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Above cart button', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr class="radio"> <th><?php echo esc_html__('Notes text field', 'wcexaap'); ?></th> <td> <div> <label> <input name="quickpay_notes_field" type="radio" id="quickpay_notes_field_1" value="on" <?php echo $acting_opts['quickpay_notes_field'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Show', 'wcexaap'); ?></span> </label> <label> <input name="quickpay_notes_field" type="radio" id="quickpay_notes_field_2" value="off" <?php echo $acting_opts['quickpay_notes_field'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Hide', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr class="radio"> <th><?php echo esc_html__('Custom order field', 'usces'); ?></th> <td> <div> <label> <input name="quickpay_custom_order_fields" type="radio" id="quickpay_custom_order_fields_1" value="on" <?php echo $acting_opts['quickpay_custom_order_fields'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Show', 'wcexaap'); ?></span> </label> <label> <input name="quickpay_custom_order_fields" type="radio" id="quickpay_custom_order_fields_2" value="off" <?php echo $acting_opts['quickpay_custom_order_fields'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Hide', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr class="radio"> <th> <a class="explanation-label" id="label_ex_quickap_custom_delivery_fields_amazon"> <?php echo esc_html__('Custom delivery field', 'usces'); ?> </a> </th> <td> <div> <label> <input name="quickpay_custom_delivery_fields" type="radio" id="quickpay_custom_delivery_fields_1" value="on" <?php echo $acting_opts['quickpay_custom_delivery_fields'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Show', 'wcexaap'); ?></span> </label> <label> <input name="quickpay_custom_delivery_fields" type="radio" id="quickpay_custom_delivery_fields_2" value="off" <?php echo $acting_opts['quickpay_custom_delivery_fields'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Hide', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_quickap_custom_delivery_fields_amazon" class="explanation"> <td colspan="2"> <?php echo esc_html__('If selected, this will only show for non-DLSeller items.', 'wcexaap'); ?> </td> </tr> <tr class="radio"> <th> <a class="explanation-label" id="label_ex_quickpay_default_customer_address_details"> <?php echo esc_html__('How to save address details', 'wcexaap'); ?> </a> </th> <td> <div> <label> <input name="quickpay_default_customer_address_details" type="radio" id="quickpay_default_customer_address_details_1" value="on" <?php echo $acting_opts['quickpay_default_customer_address_details'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Save delivery address as customer address details', 'wcexaap'); ?></span> </label> <label> <input name="quickpay_default_customer_address_details" type="radio" id="quickpay_default_customer_address_details_2" value="off" <?php echo $acting_opts['quickpay_default_customer_address_details'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Leave customer address details blank', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_quickpay_default_customer_address_details" class="explanation"> <td colspan="2"> <?php echo esc_html__('An Amazon account only contains a customers email address and name, not address details.', 'wcexaap'); ?> </td> </tr> </table> <?php }