Plugin Support
Yuki K a11n.
(@yukikatayama)
Automattic Happiness Engineer
Hi there,
There are 4 possible 3DS states you can have in Stripe itself.
1. Not Supported – 3DS will not trigger.
2. Recommended – 3DS will trigger.
3. Required – 3DS will trigger.
4. Optional – 3DS will not trigger.
For optional, we don’t force customers to go through 3DS for better conversion rates by default. If it’s set to Recommended or Required, but still not using 3D Secure, try overriding that by using hooks. Please see the hooks/filters documentation here https://docs.woocommerce.com/document/stripe/#filter-hooks and look for the hook wc_stripe_require_3ds
You can probably use add_filter( 'wc_stripe_require_3ds', '__return_true' ); in your child theme functions.php file. Make sure to backup your site before making any code related changes.
Thanks!
Thread Starter
Sam
(@rossamreaksa)
Hi @yukikatayama,
I want to force customers to go through 3DS so i added but still doesn’t work. see below:
***********************************
“card”: {
“exp_month”: 4,
“exp_year”: 2021,
“brand”: “Visa”,
“country”: “US”,
“cvc_check”: “pass”,
“fingerprint”: “pXS2Ien0yymwRKg9”,
“funding”: “credit”,
“last4”: “4242”,
“three_d_secure”: “optional”,
“name”: null,
“address_line1_check”: null,
“address_zip_check”: null,
“tokenization_method”: null,
“dynamic_last4”: null
},
*******************************************
add_action(‘woocommerce_cart_updated’, ‘wc_stripe_require_3ds’,10, 2);
function wc_stripe_require_3ds (){
global $woocommerce;
$maximum = 50;
if ( WC()->cart->subtotal > $maximum ) {
add_filter( ‘wc_stripe_require_3ds’, ‘__return_true’ );
}
}
*********************
What is my mistake? Could you assist me please?
Thansk
Plugin Support
dougaitken
(@dougaitken)
Automattic Happiness Engineer
Hey there @rossamreaksa
I want to force customers to go through 3DS so i added but still doesn’t work. see below:
We can’t offer support with customizations, this is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.
I can also recommend the following places for more development-oriented questions:
- WooCommerce Slack Community: https://woocommerce.com/community-slack/
- Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/
Are you using the standard checkout fields and not Stripe Checkout?
Thanks,
Thread Starter
Sam
(@rossamreaksa)
Hi @dougaitken
Thanks for advice me to join the developer community, and after lots of advice and errors and now it’s worked as i expected by forcing 3DS on ‘optional’ orders.
It’s so helpful for me.
Thanks again.
Sam
iOS Develper | Web Develper
http://www.hiremego.com
Hi @rossamreaksa
Would you care to elaborate on how you resolved this issue? I have the exact same problem.
Thanks in advance!