Skip to content

Instantly share code, notes, and snippets.

@NiklasHogefjord
Last active August 18, 2017 13:16
Show Gist options
  • Save NiklasHogefjord/f84c66c7f17f4d876b08e9a020e7a87b to your computer and use it in GitHub Desktop.
Save NiklasHogefjord/f84c66c7f17f4d876b08e9a020e7a87b to your computer and use it in GitHub Desktop.
/**
* WooCommerce - Klarna payment gateway
* Filter Create order for making date of birth a mandatory field in Klarna Checkout iframe.
**/
// New order ($create)
add_filter('kco_create_order', 'my_kco_create_order');
function my_kco_create_order( $create ) {
$create['options']['national_identification_number_mandatory'] = true;
return $create;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment