Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 12, 2014 03:50
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 woogist/8949784 to your computer and use it in GitHub Desktop.
Save woogist/8949784 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'wc_payment_gateway_elavon_vm_request_xml', 'wc_payment_gateway_elavon_vm_add_custom_fields', 10, 2 );
function wc_payment_gateway_elavon_vm_add_custom_fields( $request_xml, $request ) {
$request_xml->addChild( 'ssl_name_on_card', str_replace( array( '&', '<', '>' ), '', $request->ssl_first_name . ' ' . $request->ssl_last_name ) );
return $request_xml;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment