-
-
Save NiklasHogefjord/4c8fa9736a8900bb1f39807042e9e770 to your computer and use it in GitHub Desktop.
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
<?php | |
// Edit the order data sent to Klarna to make 'Date of birth' a mandatory field in the KCO iframe | |
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