• Resolved antlesma

    (@antlesma)


    I try to get paid in my website with forminator with a new Stripe account, but I cant do that beacouse it shows the message:

    The statement_descriptor parameter is not supported for the payment_method_type card. To continue supporting payment_method_type card, please pass in statement_descriptor_suffix or remove the statement_descriptor parameter altogether.

    I need to solve this as soon as possible.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @antlesma

    I hope you are doing well.

    Can you please try the following code:

    <?php
    /**
     * Plugin Name: [Forminator Pro] Replace statement_descriptor
     * Description: Quick fix to replace statement_descriptor with 
     * Author URI: https://wpmudev.com
     * License: GPLv2 or later
     *
     * @package WordPress
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    add_action( 'plugins_loaded', 'replace_statement_descriptor_in_stripe_library' );
    
    function replace_statement_descriptor_in_stripe_library() {
    
    	// File containing the async request class.
    	$file = WP_PLUGIN_DIR . '/forminator/library/fields/stripe.php';
    
    	// Check if async request file exists.
    	if ( ! file_exists( $file ) ) {
    		return;
    	}
    
    	// Get the file contents.
    	$content = file_get_contents( $file );
    
    	// Check if we have content.
    	if ( ! $content ) {
    		return;
    	}
    
    	// Change statement_descriptor to statement_descriptor_suffix.
    	$new_content = str_replace( "['statement_descriptor']", "['statement_descriptor_suffix']", $content );
    
    	// Update only if content changed.
    	if ( $new_content !== $content ) {
    		file_put_contents( $file, $new_content );
    	}
    
    }

    as a mu-plugin https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/, please test it first on a Staging site.

    This is a known situation and our developers will be working on some improvements.

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @antlesma ,

    It looks like my colleague’s code helped solve your issue as we haven’t heard back from you for some time now.
    I will resolve this topic, but if you have more questions feel free to re-open it.

    kind regards,
    Kasia

    Hello,

    I have the same issue. Is It fixed with the latest update since then?
    Btw the patch is working on my site.

    Kind regards,
    Gábor

    • This reply was modified 2 years, 3 months ago by gaborbolla.

    Hi @gaborbolla

    The fix is not yet included. Please stay tune to our roadmap: https://wpmudev.com/roadmap/

    As for now we suggest to use above snippet shared by Patrick.

    Kind Regards,
    Kris

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stripe The statement_descriptor parameter’ is closed to new replies.