name = esc_html__( 'Payments', 'wpforms-lite' ); $this->slug = 'payments'; $this->icon = 'fa-usd'; $this->order = 10; $this->sidebar = true; } /** * Output the Payments panel sidebar. * * @since 1.0.0 */ public function panel_sidebar() { // Sidebar contents are not valid unless we have a form. if ( ! $this->form ) { return; } $this->panel_sidebar_section( esc_html__( 'Default', 'wpforms-lite' ), 'default' ); do_action( 'wpforms_payments_panel_sidebar', $this->form ); } /** * Output the Payments panel primary content. * * @since 1.0.0 */ public function panel_content() { // An array of all the active provider addons. $payments_active = apply_filters( 'wpforms_payments_available', [] ); if ( ! $this->form ) { // Check if there is a form created. When no form has been created // yet let the user know we need a form to setup a payment. echo '
' . sprintf( wp_kses( /* translators: %s - addons page URL. */ __( 'It seems you do not have any payment addons activated. You can head over to the Addons page to install and activate the addon for your payment service.', 'wpforms-lite' ), [ 'a' => [ 'href' => [], ], ] ), esc_url( admin_url( 'admin.php?page=wpforms-addons' ) ) ) . '
' . esc_html__( 'It seems you don\'t have any payment addons activated. Click one of the available addons and start accepting payments today!', 'wpforms-lite' ) . '