関数
Review::filterConfirmPagePayButton( string $html, array $payments, string $acting_flag, int $rand, string $purchase_disabled )
Amazon Pay購入ボタンと戻るボタンを表示する
パラメータ パラメータ
- $html
(文字列) (必須)
- $payments
(配列) (必須)
- $acting_flag
(文字列) (必須)
- $rand
(数値) (必須)
- $purchase_disabled
(文字列) (必須)
ファイル: src/Views/ConfirmPageReview/Review.php
protected function filterConfirmPagePayButton($html, $payments, $acting_flag, $rand, $purchase_disabled) {
/**
* Fires above the purchase button section on the Welcart 通常フロー 内容確認 page
*
* @important
* @param array $payments
* @param string $acting_flag
* @param int $rand
* @param string $purchase_disabled
*/
do_action(
'wcexaap_confirm_page_review_above_purchase_button',
$payments,
$acting_flag,
$rand,
$purchase_disabled
);
if (!empty($this->amzProductType)) {
/**
* Fires above the purchase button section on the Welcart 通常フロー 内容確認 page
*
* @important
* @param array $payments
* @param string $acting_flag
* @param int $rand
* @param string $purchase_disabled
*/
do_action(
"wcexaap_confirm_page_review_above_purchase_button_{$this->amzProductType}",
$payments,
$acting_flag,
$rand,
$purchase_disabled
);
}
ob_start();
?>
<div id="checkout_review" class="wcexaap">
<div class="update-payment-method-container">
<div class="ui message" style="display: flex; flex-flow: row nowrap;">
<img id="amazonPayLogo" src="<?php echo WCEXAAP_PLUGIN_URL . '/assets/logo-pay.png'; ?>" height="20px" />
<a id="updatePaymentMethodButton">
<?php
/**
* Filters the 'Change Payment Method' link text shown on the Welcart 通常フロー 内容確認 page
*
* @important
* @param string $text Default: 'Amazonアカウントで指定したお支払い方法を変更'
*/
echo esc_html(apply_filters(
'wcexaap_filter_confirm_page_change_payment_method_link_text',
__('Change my Amazon payment method', 'wcexaap')
));
?>
</a>
</div>
</div>
<?php $this->childComponents['purchaseButton']->templateIfLoad(); ?>
</div>
<?php
$html = ob_get_clean();
return $html;
}