Skip to content

Instantly share code, notes, and snippets.

@NiklasHogefjord
Created July 2, 2015 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NiklasHogefjord/b77b138ecad3a5146dc8 to your computer and use it in GitHub Desktop.
Save NiklasHogefjord/b77b138ecad3a5146dc8 to your computer and use it in GitHub Desktop.
DIBS for WooCommerce - add acquirerinfo parameter sent to DIBS
/**
* 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