• Resolved woodypad

    (@woodypad)


    Hello everyone,
    statement_descriptor error still occurs with Stripe payments. Although I have disabled WooCommerce > Settings > Payments > Stripe > Settings, and remove the description from the Customer bank statement area.
    As stated here:
    https://www.ads-software.com/support/topic/can-not-pay-by-stripe/#post-17384608

    Payment failed: 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 am using
    WooCommerce Stripe Gateway V. 8.0.0 (with the new experience)
    WooCommerce V.8.6.1
    WordPress V. 6.4.3
    and everything else updated.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Afzal (woo-hc)

    (@afzalpansuvi)

    Hi @woodypad,

    Thank you for reaching out and providing detailed information about the issue you’re experiencing with Stripe payments. It’s clear that you’ve already done some troubleshooting on your own, which is great to see.

    The error message you’re seeing suggests that the statement_descriptor parameter is not supported for the payment_method_type card. Instead, it suggests using statement_descriptor_suffix or removing the statement_descriptor parameter altogether.

    If the issue persists, there might be other factors involved. As a first step, I would recommend enabling the debug mode in your WooCommerce Stripe settings. This can help to identify any errors during the payment process. You can find steps to enable debug mode here.

    Once debug mode is enabled, please try to make a test purchase in order to generate any error logs. You can then share the error logs with us for further troubleshooting.

    Looking forward to your reply and working together to resolve this issue.

    Thread Starter woodypad

    (@woodypad)

    Hi @afzalpansuvi,
    Thanks for replying, I will place an order with debugging enabled.
    For deleting the statement_descriptor what should I do is part of the plugin. I have already deleted that information from the plugin as read in the link above.

    Thank you

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @woodypad,

    Can you confirm that you’re using the latest version? We’d also appreciate it if you could share a screenshot of your Stripe settings, particularly the Customer bank statement area.

    Furthermore, if you’ve already cleared and disabled the Customer bank statement option but are still experiencing issues, I suggest downgrading to version 7.8.1 or earlier as a temporary solution to see if that resolves the problem.

    Just letting you know, our dev team is already aware of this issue: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2830

    Let us know how that goes. Looking forward to helping you.

    Plugin Author Diego

    (@diegocwp)

    Hey @woodypad!

    We are aware that there are a few edge cases in which the statement descriptor does not behave as expected, and we are currently working on a fix for this.

    In the meantime, it seems that a snippet like this would fix your problem:

    add_filter( 'wc_stripe_generate_create_intent_request', function ( $request, $order, $prepared_source ) {
    	$request[ 'statement_descriptor_suffix' ] = WC_Stripe_Helper::get_dynamic_statement_descriptor_suffix( $order );
    	unset( $request[ 'statement_descriptor' ] );
    	return $request;
    }, 10, 3 );
    Thread Starter woodypad

    (@woodypad)

    Hi @shameemreza,
    I communicated the plugin and WP versions in the first message.
    Yes, the Customer Bank Statement settings were already deactivated. So version 8 is not working as it should, at least for me.

    Following your advice to downgrade to version 7.8.1 seems to have fixed it. I was able to activate Test Stripe again and the transaction was successful, without errors.
    Let’s hope it’s the same with real transactions ??

    Hi @diegocwp,
    by downgrading as I said I solved it, so I didn’t try the code you provided.

    But thank you both!

    NOTE.
    I wanted to point out a small thing, I don’t know if you know.
    The text entered in: Display settings > Name
    is not shown in the checkout, but the standard text “Pay with credit card / debit card” is always shown

    Thank you

    Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @woodypad,

    Thank you for confirming that downgrading fixed it for you. If you need to update in the future and the issue persists, you can try @diegocwp’s solution.

    I wanted to point out a small thing, I don’t know if you know.
    The text entered in:?Display settings > Name
    is not shown in the checkout, but the standard text “Pay with credit card / debit card” is always shown

    Can you please share more details about this? Does this happen to you on 7.8.1 or 8.0.0? (or both?), additionally, do you use the default checkout page or the checkout block? And do you use Stripe’s New checkout experience?

    Finally, please note that the Display name settings reads “Enter the payment method name that will be displayed at checkout when there are multiple available payment methods.” Do you have multiple available payment methods?

    Cheers!
    -OP

    Thread Starter woodypad

    (@woodypad)

    Hello @omarfpg,

    Thank you for your reply and your support!

    yes, of course, if the update is necessary I will use the code kindly provided by @diegocwp

    Returning to the payment name
    I tried with versions 7.8.1, 7.9.3 and 8.0.0
    I use Stripe’s new checkout experience.
    My checkout is modified with Elementor, so I’m using the “Payment Methods” block.
    I have more than one active payment method, other labels work.

    Thank you!

    • This reply was modified 1 year ago by woodypad.
    danae39

    (@danae39)

    Hey there ?? Quick update over here.

    We have this alpha version for 8.0.1 that should fix this issue.

    Please feel free to give it a go. The changes should be safe at this point but we recommend using a staging site for this since it’s an alpha version.

    Hey, @woodypad!

    Regarding:

    Returning to the payment name
    I tried with versions 7.8.1, 7.9.3 and 8.0.0
    I use Stripe’s new checkout experience.
    My checkout is modified with Elementor, so I’m using the “Payment Methods” block.
    I have more than one active payment method, other labels work.

    I’ve run some tests on my website and I was able to replicate the issue.

    I have already reported this here. You can follow the report on GitHub if you want to get updates.

    We will do our best to fix it as soon as possible.

    We can’t specify a date when the bug will be fixed, it is still in progress. We apologize for any inconvenience this may have caused you, and we thank you for your patience.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter woodypad

    (@woodypad)

    Hi @danae39,

    We have this alpha version for 8.0.1 that should fix this issue.

    I tried this version on my test site and the transaction was completed successfully.

    Hi @carolm29,

    I’ve run some tests on my website and I was able to replicate the issue.

    Thanks also for your review, please update me.
    I can say that the version provided here by @danae39 also partially solves the problem, now the Name is also shown in the language of the site, whereas before it wasn’t.
    It’s a small improvement ??

    Thank you all!

    • This reply was modified 1 year ago by woodypad.
    • This reply was modified 1 year ago by woodypad.
    • This reply was modified 1 year ago by woodypad.
    • This reply was modified 1 year ago by woodypad.
    • This reply was modified 1 year ago by woodypad.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello woodypad

    Thank for your reply.

    I am glad to know that the Alpha Version has partially solved your problem.
    Please note that the Alpha Version is a work in progress and not a stable release. Therefore, it may cause other issues.

    I will recommend you create a full backup of your website just in an emergency. This will help you restore your site to the last stable state.

    Rest assured, our team is focused on resolving this issue on a stable release as soon as possible.

    You can subscribe to this GitHub issue to receive updates on the progress.
    Please let me know if you have any other questions. ??

    Best regards.

    danae39

    (@danae39)

    Hey @woodypad!

    Thanks for confirming that the 8.0.1 alpha worked! We’ve just released 8.0.1 with this fix.

    Regarding…

    The text entered in:?Display settings > Name
    is not shown in the checkout, but the standard text “Pay with credit card / debit card” is always shown

    I’ve created the following GH issue to handle this setting while we introduce the new functionality that would replace it. Thanks for the report! ??

    Thread Starter woodypad

    (@woodypad)

    Hi,
    thanks for your reply, I haven’t been in the office these days, I will update to version “8.0.1”, at the moment I’m still using “7.8.1”.

    Thank you

    • This reply was modified 12 months ago by woodypad.
    Thread Starter woodypad

    (@woodypad)

    Thank you

    • This reply was modified 12 months ago by woodypad.
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @woodypad,

    I’m glad we were able to help! Should you have further inquiries, kindly create a new topic here.

    Meanwhile, if it isn’t too much to ask for – would you mind leaving us a review here?

    It only takes a couple of minutes but helps us tremendously. It would mean so much to us and would go a really long way.

    Thanks!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can not pay by Stripe – statement_descriptor error’ is closed to new replies.