Created
July 2, 2015 14:52
-
-
Save NiklasHogefjord/b77b138ecad3a5146dc8 to your computer and use it in GitHub Desktop.
DIBS for WooCommerce - add acquirerinfo parameter sent to DIBS
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 an acquirerinfo parameter sent to DIBS | |
**/ | |
add_filter('dibs_checkout_form', 'my_dibs_checkout_form', 10, 3); | |
function my_dibs_checkout_form( $args, $paytype, $order ) { | |
$args['acquirerinfo'] = ltrim( $order->get_order_number(), '#'); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment