PATH:
home
/
lab2454c
/
equitablegold.com
/
wp-content
/
plugins
/
woocommerce-gateway-stripe
/
includes
/
admin
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Admin page for UPE Customize Express Checkouts. * * @since 5.4.1 */ class WC_Stripe_Payment_Requests_Controller { public function __construct() { add_action( 'admin_enqueue_scripts', [ $this, 'admin_scripts' ] ); add_action( 'wc_stripe_gateway_admin_options_wrapper', [ $this, 'admin_options' ] ); } /** * Load admin scripts. */ public function admin_scripts() { // Webpack generates an assets file containing a dependencies array for our built JS file. $script_asset_path = WC_STRIPE_PLUGIN_PATH . '/build/payment_requests_settings.asset.php'; $asset_metadata = file_exists( $script_asset_path ) ? require $script_asset_path : [ 'dependencies' => [], 'version' => WC_STRIPE_VERSION, ]; wp_register_script( 'wc-stripe-payment-request-settings', plugins_url( 'build/payment_requests_settings.js', WC_STRIPE_MAIN_FILE ), $asset_metadata['dependencies'], $asset_metadata['version'], true ); wp_set_script_translations( 'wc-stripe-payment-request-settings', 'woocommerce-gateway-stripe' ); wp_enqueue_script( 'wc-stripe-payment-request-settings' ); wp_register_style( 'wc-stripe-payment-request-settings', plugins_url( 'build/payment_requests_settings.css', WC_STRIPE_MAIN_FILE ), [ 'wc-components' ], $asset_metadata['version'] ); wp_enqueue_style( 'wc-stripe-payment-request-settings' ); } /** * Prints the admin options for the gateway. * Remove this action once we're fully migrated to UPE and move the wrapper in the `admin_options` method of the UPE gateway. */ public function admin_options() { global $hide_save_button; $hide_save_button = true; echo '<h2>' . esc_html__( 'Customize express checkouts', 'woocommerce-gateway-stripe' ); wc_back_link( __( 'Return to Stripe', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=stripe' ) ); echo '</h2>'; echo '<div class="wrap"><div id="wc-stripe-payment-request-settings-container"></div></div>'; } }
[-] class-wc-stripe-settings-controller.php
[edit]
[-] class-wc-rest-stripe-account-keys-controller.php
[edit]
[-] class-wc-stripe-inbox-notes.php
[edit]
[-] stripe-settings.php
[edit]
[-] class-wc-rest-stripe-tokens-controller.php
[edit]
[-] class-wc-stripe-rest-upe-flag-toggle-controller.php
[edit]
[-] stripe-sepa-settings.php
[edit]
[-] class-wc-stripe-old-settings-upe-toggle-controller.php
[edit]
[+]
..
[-] stripe-multibanco-settings.php
[edit]
[-] stripe-sofort-settings.php
[edit]
[-] stripe-alipay-settings.php
[edit]
[-] class-wc-rest-stripe-payment-gateway-controller.php
[edit]
[-] class-wc-stripe-admin-notices.php
[edit]
[-] stripe-p24-settings.php
[edit]
[-] class-wc-rest-stripe-locations-controller.php
[edit]
[-] class-wc-stripe-rest-base-controller.php
[edit]
[-] class-wc-rest-stripe-settings-controller.php
[edit]
[-] stripe-oxxo-settings.php
[edit]
[-] stripe-ideal-settings.php
[edit]
[-] stripe-giropay-settings.php
[edit]
[-] stripe-eps-settings.php
[edit]
[-] class-wc-stripe-upe-compatibility-controller.php
[edit]
[-] stripe-bancontact-settings.php
[edit]
[-] stripe-boleto-settings.php
[edit]
[-] class-wc-rest-stripe-connection-tokens-controller.php
[edit]
[-] class-wc-stripe-payment-requests-controller.php
[edit]
[-] class-wc-rest-stripe-account-controller.php
[edit]
[-] class-wc-rest-stripe-orders-controller.php
[edit]
[-] class-wc-stripe-privacy.php
[edit]
[-] class-wc-stripe-payment-gateways-controller.php
[edit]