Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xlplugins/ed3347e876b69a010152d470484e05f3 to your computer and use it in GitHub Desktop.
Save xlplugins/ed3347e876b69a010152d470484e05f3 to your computer and use it in GitHub Desktop.
Enable country and zip code field in Funnelkit Stripe
/**
* 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