Skip to content

Instantly share code, notes, and snippets.

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 xlplugins/08f6a8e04755baf549c040a933969e5b to your computer and use it in GitHub Desktop.
Save xlplugins/08f6a8e04755baf549c040a933969e5b to your computer and use it in GitHub Desktop.
[Funnelkit Checkout] Log Save the Checkout data in log when payment done by authorized.net Credit card
add_action( 'woocommerce_checkout_order_processed', function ($order_id) {
if ( isset( $_POST['payment_method'] ) && 'authorize_net_cim_credit_card' == $_POST['payment_method'] ) {
$log = wc_get_logger();
if ( is_null( $log ) ) {
return;
}
$log->info( 'Authorized net Payment Data order id -'.$order_id.' - ' . print_r( $_POST, true ), array( 'source' => 'funnelkit_authorized_log_test' ) );
}
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment