MENU

料金プラン

機能一覧

デモ

ご利用の流れ

お役立ちコラム



決済システム

操作ガイド

決済システム向けAmelia WP フック

フックの使用には一定レベルのプログラミングスキルが必要であり、プラグインで提供されるサポートには含まれていません。

読みたいところをタップ

Stripe

amelia_before_stripe_payment

ユーザーは、Stripe決済が実行される前にStripeのデータを変更することが可能です。

タイプ: フィルター

例:

function example_callback($stripeData) { 
    // Stripeデータを変更
    return $stripeData; 
} 
add_filter('amelia_before_stripe_payment', 'example_callback', 10, 1);

WooCommerce

amelia_before_wc_cart_filter

ユーザーは、このフィルターを使用して、データがカートに追加される前にデータを変更することが可能です。

タイプ: フィルター

例:

function example($appointmentData) { 
    // 予約データを変更
    return $appointmentData; 
} 
add_filter('amelia_before_wc_cart_filter', 'example', 10, 1);

amelia_before_wc_cart

ユーザーは、このフックを使用して、予約がカートに追加される前にアクションを実行することが可能です。

タイプ: アクション

例:

function example($appointmentData) { 
    // アクションを実行
} 
add_action('amelia_before_wc_cart', 'example', 10, 1);

amelia_get_wc_products_filter

ユーザーは、このフィルターを使用して、管理者側に返されるWooCommerceの製品を変更することが可能です。

タイプ: フィルター

例:

function example($products) { 
    // 製品を変更
    return $products; 
} 
add_filter('amelia_get_wc_products_filter', 'example', 10, 1);

amelia_get_wc_products

ユーザーは、このフックを使用して、WooCommerceの製品が管理者側に返される前にアクションを実行することが可能です。

タイプ: アクション

例:

function example($products) { 
    // アクションを実行
} 
add_action('amelia_get_wc_products', 'example', 10, 1);

amelia_checkout_data

ユーザーは、このフックを使用して、チェックアウトデータ(billing_first_name、billing_last_name、billing_メール、billing_phone)を変更することが可能です。

タイプ: フィルター

例:

function example($data, $container, $wc_key) { 
    // wc_key - Ameliaのカートアイテムのキー
    return $data; 
} 
add_filter('amelia_checkout_data', 'example', 10, 3);

amelia_get_modified_price

ユーザーは、このフックを使用して、WooCommerceの支払い金額を変更することが可能です。

タイプ: フィルター

例:

function example($paymentAmount, $wcItemAmeliaCache, $bookableData) { 
    return $paymentAmount; 
} 
add_filter('amelia_get_modified_price', 'example', 10, 3);

amelia_wc_redirect_page

ユーザーは、このフックを使用して、WooCommerceのリダイレクトURL(カートまたはチェックアウトのURL)を変更することが可能です。

タイプ: フィルター

例:

function example($redirectUrl, $appointmentData) { 
    return $redirectUrl; 
} 
add_filter('amelia_wc_redirect_page', 'example', 10, 2);

Mollie

amelia_before_mollie_redirect_filter

ユーザーは、Mollieのリダイレクトリンクが返される前に予約データを変更することが可能です。

タイプ: フィルター

例:

function example($bookingData) { 
    // 予約データを変更
    return $bookingData; 
} 
add_filter('amelia_before_mollie_redirect_filter', 'example', 10, 1);

amelia_before_mollie_redirect

ユーザーは、このフックを使用して、MollieのリダイレクトURLが返される前にアクションを実行することが可能です。

タイプ: アクション

例:

function example($bookingData) { 
    // アクションを実行
} 
add_action('amelia_before_mollie_redirect', 'example', 10, 1);

PayPal

amelia_before_paypal_execute_filter

ユーザーは、PayPal決済が実行される前に支払い金額を変更することが可能です。

タイプ: フィルター

例:

function example($paymentAmount, $reservation) { 
    // 金額を変更
    return $paymentAmount; 
} 
add_filter('amelia_before_paypal_execute_filter', 'example', 10, 2);

amelia_before_paypal_execute

ユーザーは、このフックを使用して、PayPal決済が実行される前にアクションを実行することが可能です。

タイプ: アクション

例:

function example($paymentAmount, $reservation) { 
    // アクションを実行
} 
add_action('amelia_before_paypal_execute', 'example', 10, 2);

amelia_after_paypal_execute_filter

ユーザーは、PayPal決済が実行された後でPayPalの応答を変更することが可能です。

タイプ: フィルター

例:

function example($response, $reservation) { 
    // 応答を変更
    return $response; 
} 
add_filter('amelia_after_paypal_execute_filter', 'example', 10, 2);

amelia_after_paypal_execute

ユーザーは、このフックを使用して、PayPal決済が実行された後でアクションを実行することが可能です。

タイプ: アクション

例:

function example($response, $reservation) { 
    // アクションを実行
} 
add_action('amelia_after_paypal_execute', 'example', 10, 2);

Razorpay

amelia_before_razorpay_execute_filter

ユーザーは、Razorpay決済が実行される前に注文データを変更することが可能です。

タイプ: フィルター

例:

function example($orderData, $reservation) { 
    // データ(金額とメモ)を変更
    return $orderData; 
} 
add_filter('amelia_before_razorpay_execute_filter', 'example', 10, 2);

melia_before_razorpay_execute

ユーザーは、このフックを使用して、Razorpay決済が実行される前にアクションを実行することが可能です。

タイプ: アクション

例:

function example($orderData, $reservation) { 
    // アクションを実行
} 
add_action('amelia_before_razorpay_execute', 'example', 10, 2);

amelia_after_razorpay_execute_filter

ユーザーは、Razorpay決済が実行された後で応答を変更することが可能です。

タイプ: フィルター

例:

function example($data, $reservation) { 
    // データを変更
    return $data; 
} 
add_filter('amelia_after_razorpay_execute_filter', 'example', 10, 2);

amelia_after_razorpay_execute

ユーザーは、このフックを使用して、Razorpay決済が実行された後でアクションを実行することが可能です。

タイプ: アクション

例:

function example($response, $reservation) { 
    // アクションを実行
} 
add_action('amelia_after_razorpay_execute', 'example', 10, 2);