Description

The wpforms_authorize_net_process_payment_single_args filter is used to include the arguments sent to Authorize.net that can be pulled from the form entry.

Parameters

$args
(array) Single payment arguments.
$process
(object) WPForms Authorize.Net Process object.

Source

wpforms-authorize-net/src/Process.php

More Information

The wpforms_authorize_net_process_payment_single_args filter is used to view/set arguments to Authorize.net that can be pulled from the form entry.

Examples

/**
 * Filter to set arguments to Authorize.net.
 *
 * @link  https://wpforms.com/developers/wpforms_authorize_net_process_payment_single_args/
 *
 * @param array   $args    Single payment arguments.
 * @param object  $process WPForms Authorize.Net Process object.
 *
 * @return array
 */

function wpf_dev_authorize_net_process_payment_single_add_fields_to_args( $args, $process ) {

   // Replace 3 in $process->fields[ 3 ] to an id of your address field.
   $args[ 'address' ] = $process->fields[ 3 ];

   return $args;

}
add_filter( 'wpforms_authorize_net_process_payment_single_args', 'wpf_dev_authorize_net_process_payment_single_add_fields_to_args', 10, 2 );

Filter Reference: wpforms_authorize_net_process_transaction

Tutorial Reference: