: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
private function learn_more_link() {
'<a href="%1$s" target="_blank" rel="noopener noreferrer" class="secondary-text">%2$s</a>',
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/how-to-install-and-use-the-stripe-addon-with-wpforms/', 'builder-payments', 'Stripe Documentation' ) ),
esc_html__( 'Learn more about our Stripe integration.', 'wpforms-lite' )
* Get Customer name panel field.
* @param string|null $plan_id Plan ID.
private function get_customer_name_panel_field( $plan_id = null ) {
'field_map' => [ 'name' ],
'placeholder' => esc_html__( '--- Select Name ---', 'wpforms-lite' ),
'tooltip' => esc_html__( 'Select the field that contains the customer\'s name. This is optional but recommended.', 'wpforms-lite' ),
if ( ! is_null( $plan_id ) ) {
$args['subsection'] = 'recurring';
$args['index'] = $plan_id;
return wpforms_panel_field(
esc_html__( 'Customer Name', 'wpforms-lite' ),
* Get address panel fields.
* @param string|null $plan_id Plan ID.
private function get_address_panel_fields( $plan_id = null ): string {
'field_map' => [ 'address' ],
'placeholder' => esc_html__( '--- Select Address ---', 'wpforms-lite' ),
'tooltip' => esc_html__( 'Select the field that contains the customer\'s address. This is optional but required for some regions.', 'wpforms-lite' ),
$is_subscription = ! is_null( $plan_id );
if ( $is_subscription ) {
$args['subsection'] = 'recurring';
$args['index'] = $plan_id;
$output = wpforms_panel_field(
esc_html__( 'Customer Address', 'wpforms-lite' ),
if ( $is_subscription ) {
$args['tooltip'] = esc_html__( 'Select the field that contains the shipping address. This is optional but required for some regions.', 'wpforms-lite' );
$output .= wpforms_panel_field(
esc_html__( 'Shipping Address', 'wpforms-lite' ),