関数
ConfirmPageLogin::filterConfirmPagePayButton( string $html, array $payments, string $acting_flag, int $rand, string $purchase_disabled )
Amazon Payログインボタンとウィジェットを表示する
パラメータ パラメータ
- $html
(文字列) (必須)
- $payments
(配列) (必須)
- $acting_flag
(文字列) (必須)
- $rand
(数値) (必須)
- $purchase_disabled
(文字列) (必須)
ファイル: src/Views/ConfirmPageLogin/ConfirmPageLogin.php
protected function filterConfirmPagePayButton($html, $payments, $acting_flag, $rand, $purchase_disabled) {
/**
* Mirrored Welcart filter
*
* @ignore
*/
$backbuttontext = apply_filters('usces_filter_confirm_prebutton_value', __('Back', 'usces'));
ob_start();
?>
<!-- login container -->
<div id="checkout_review">
<?php
ob_start();
?>
<p class="note">
<?php
/**
* Filters the message text shown above the Amazon Pay button displayed on the Welcart 通常フロー 内容確認 page
*
* @important
* @param string $text Default: 'Amazon Payでお支払いいただくには、下記のボタンからAmazonへログインしてください。'
*/
echo apply_filters(
'wcexaap_filter_confirm_page_login_note',
esc_html__('To make a purchase with Amazon, click the button below and login.', 'wcexaap')
);
?>
</p>
<?php
$note = ob_get_clean();
/**
* Filters the message HTML shown above the Amazon Pay button displayed on the Welcart 通常フロー 内容確認 page
*
* @param string $note
* @param \Aivec\Welcart\SettlementModules\AmazonPay\AmazonPay $module
* @param array $payments
* @param string $acting_flag
* @param int $rand
* @param string $purchase_disabled
*/
$note = apply_filters(
'wcexaap_filter_confirm_page_login_note_html',
$note,
$this->module,
$payments,
$acting_flag,
$rand,
$purchase_disabled
);
echo $note;
?>
<div class="login-btn-container">
<form
action="<?php echo esc_url(USCES_CART_URL); ?>"
method="post"
onKeyDown="if (event.keyCode == 13) {return false;}"
>
<input
name="backDelivery"
type="submit"
class="back_button"
value="<?php echo esc_attr($backbuttontext); ?>"
/>
</form>
<?php echo Checkout::getAmazonPayButton(); ?>
</div>
</div>
<?php
$html = ob_get_clean();
return $html;
}