関数
SettlementSettings::settlementModuleFields( array $acting_opts )
Amazon Pay config options
パラメータ パラメータ
- $acting_opts
(配列) (必須)
ファイル: src/Admin/SettlementSettings.php
protected function settlementModuleFields($acting_opts) { ?> <tr> <th> <a class="explanation-label" id="label_ex_merchant_id_amazon"> <?php echo esc_html__('Merchant ID', 'wcexaap'); ?> </a> </th> <td> <input name="merchant_id" type="text" id="merchant_id_amazon" value="<?php echo esc_attr($acting_opts['merchant_id']); ?>" size="20" /> </td> </tr> <tr id="ex_merchant_id_amazon" class="explanation"> <td colspan="2"> <?php echo esc_html__('Can be found on your Amazon Seller Central account.', 'wcexaap'); ?> </td> </tr> <tr> <th> <a class="explanation-label" id="label_ex_access_key_amazon"> <?php echo esc_html__('Access Key', 'wcexaap'); ?> </a> </th> <td> <input name="access_key" type="text" id="access_key_amazon" value="<?php echo esc_attr($acting_opts['access_key']); ?>" size="20" /> </td> </tr> <tr id="ex_access_key_amazon" class="explanation"> <td colspan="2"> <?php echo esc_html__('Can be found on your Amazon Seller Central account.', 'wcexaap'); ?> </td> </tr> <tr> <th> <a class="explanation-label" id="label_ex_secret_key_amazon"> <?php echo esc_html__('Secret Key', 'wcexaap'); ?> </a> </th> <td> <input name="secret_key" type="text" id="secret_key_amazon" value="<?php echo esc_attr($acting_opts['secret_key']); ?>" size="20" /> </td> </tr> <tr id="ex_secret_key_amazon" class="explanation"> <td colspan="2"> <?php echo esc_html__('Can be found on your Amazon Seller Central account.', 'wcexaap'); ?> </td> </tr> <tr> <th> <a class="explanation-label" id="label_ex_client_id_amazon"> <?php echo esc_html__('Client ID', 'wcexaap'); ?> </a> </th> <td> <input name="client_id" type="text" id="client_id_amazon" value="<?php echo esc_attr($acting_opts['client_id']); ?>" size="20" /> </td> </tr> <tr id="ex_client_id_amazon" class="explanation"> <td colspan="2"> <?php echo esc_html__('Can be found on your Amazon Seller Central account.', 'wcexaap'); ?> </td> </tr> <tr> <th> <a class="explanation-label" id="label_ex_public_key_id_amazon"> <?php echo esc_html__('Public Key ID', 'wcexaap'); ?> </a> </th> <td> <input name="public_key_id" type="text" id="public_key_id_amazon" value="<?php echo esc_attr($acting_opts['public_key_id']); ?>" size="20" /> </td> </tr> <tr id="ex_public_key_id_amazon" class="explanation"> <td colspan="2"> <?php echo sprintf( // translators: integration central URL __('This can be generated on the <a href="%s">Amazon Pay Integration Central page</a> of Seller Central.', 'wcexaap'), $acting_opts['integrationCentralUrl'] ); ?> </td> </tr> <tr> <th> <a class="explanation-label" id="label_ex_private_key_amazon"> <?php echo esc_html__('Private Key', 'wcexaap'); ?> </a> </th> <td> <textarea name="private_key" type="text" id="private_key_amazon" size="20" style="width: 100%; min-height: 100px" ><?php echo esc_html($acting_opts['private_key']); ?></textarea> </td> </tr> <tr id="ex_private_key_amazon" class="explanation"> <td colspan="2"> <?php echo sprintf( // translators: integration central URL __('A string representation of the private key you generated on the <a href="%s">Amazon Pay Integration Central page</a> of Seller Central.', 'wcexaap'), $acting_opts['integrationCentralUrl'] ); ?> </td> </tr> <tr class="radio"> <th> <a class="explanation-label" id="label_ex_address_priority"> <?php echo esc_html__('Address Priority', 'wcexaap'); ?> </a> </th> <td> <div> <label> <input name="address_priority" type="radio" id="address_priority_1" value="amazon" <?php echo $acting_opts['address_priority'] === 'amazon' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Use the buyers Amazon address', 'wcexaap'); ?></span> </label> <label> <input name="address_priority" type="radio" id="address_priority_2" value="welcart" <?php echo $acting_opts['address_priority'] === 'welcart' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Use the buyers entered address', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_address_priority" class="explanation"> <td colspan="2"> <?php _e('Prioritizing the buyers Amazon address will prompt the buyer to pick a payment method and address from their Amazon account', 'wcexaap'); ?> </td> </tr> <tr class="radio"> <th> <a class="explanation-label" id="label_ex_sync_with_order_status_changes"> <?php echo esc_html__('Sync Amazon Pay capture/cancel with Welcart order status change', 'wcexaap'); ?> </a> </th> <td> <div> <label> <input name="sync_with_order_status_changes" type="radio" id="sync_with_order_status_changes_1" value="on" <?php echo $acting_opts['sync_with_order_status_changes'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Sync', 'wcexaap'); ?></span> </label> <label> <input name="sync_with_order_status_changes" type="radio" id="sync_with_order_status_changes_2" value="off" <?php echo $acting_opts['sync_with_order_status_changes'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Do not sync', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_sync_with_order_status_changes" class="explanation"> <td colspan="2"> <?php _e('If synced, changing the order status for an Amazon Pay order will execute the corresponding Amazon Pay settlement action.', 'wcexaap'); ?> </td> </tr> <tr class="radio"> <th> <a class="explanation-label" id="label_ex_use_social_login"> <?php echo esc_html__('Show "Login with Amazon" button on member login page', 'wcexaap'); ?> </a> </th> <td> <div> <label> <input name="use_social_login" type="radio" id="use_social_login_1" value="on" <?php echo $acting_opts['use_social_login'] === 'on' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Show', 'wcexaap'); ?></span> </label> <label> <input name="use_social_login" type="radio" id="use_social_login_2" value="off" <?php echo $acting_opts['use_social_login'] === 'off' ? 'checked' : ''; ?> /> <span><?php echo esc_html__('Hide', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_use_social_login" class="explanation"> <td colspan="2"> <?php _e('Customers who created their Welcart account by using their Amazon account details can use the "Login with Amazon" feature.', 'wcexaap'); ?> </td> </tr> <!-- <tr class="radio"> <th> <a class="explanation-label" id="label_ex_transaction_processing_type"> <?php // echo esc_html__('Transaction Processing', 'wcexaap'); ?> </a> </th> <td> <div> <label> <input name="transaction_processing_type" type="radio" id="transaction_processing_type_1" value="sync" <?php // echo $acting_opts['transaction_processing_type'] === 'sync' ? 'checked' : ''; ?> /> <span><?php // echo esc_html__('Synchronous', 'wcexaap'); ?></span> </label> <label> <input name="transaction_processing_type" type="radio" id="transaction_processing_type_2" value="async" <?php // echo $acting_opts['transaction_processing_type'] === 'async' ? 'checked' : ''; ?> /> <span><?php // echo esc_html__('Asynchronous', 'wcexaap'); ?></span> </label> </div> </td> </tr> <tr id="ex_transaction_processing_type" class="explanation"> <td colspan="2"> <?php // echo esc_html__('Synchronous processing verifies a customers checkout details (payment method) when they make a purchase.', 'wcexaap'); ?> <br><br> <?php // echo esc_html__('Asynchronous transactions can take up to 24 hours to process but it may result in lower decline rates as it gives Amazon Pay more time to investigate transactions. In this case, the customer will only be notified about whether their payment succeeded after theyve completed checkout (via email from Amazon).', 'wcexaap'); ?> </td> </tr> --> <?php }