Last active
September 17, 2024 14:31
-
-
Save xlplugins/ed3347e876b69a010152d470484e05f3 to your computer and use it in GitHub Desktop.
Enable country and zip code field in Funnelkit Stripe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* add address fields auto for the Credit card fields | |
*/ | |
add_filter( 'fkwcs_stripe_payment_element_data', function ( $element_config ) { | |
$element_config['element_options']['fields']['billingDetails'] = []; | |
$element_config['element_options']['fields']['billingDetails']['address'] = 'auto'; | |
return $element_config; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment