true, 'wpcom_product_slug' => static::get_wpcom_product_slug(), ), Wpcom_Products::get_product_pricing( static::get_wpcom_product_slug() ) ); } /** * Get the WPCOM product slug used to make the purchase * * @return ?string */ public static function get_wpcom_product_slug() { return 'jetpack_videopress'; } /** * Get the URL the user is taken after activating the product * * @return ?string */ public static function get_post_activation_url() { return ''; // stay in My Jetpack page. } /** * Get the URL where the user manages the product * * @return ?string */ public static function get_manage_url() { if ( method_exists( 'Automattic\Jetpack\VideoPress\Initializer', 'should_initialize_admin_ui' ) && \Automattic\Jetpack\VideoPress\Initializer::should_initialize_admin_ui() ) { return \Automattic\Jetpack\VideoPress\Admin_UI::get_admin_page_url(); } else { return admin_url( 'admin.php?page=jetpack#/settings?term=videopress' ); } } }