MemberPress: Add Address Fields to Authorize.net

function add_address_to_recurring( $args, $txn, $sub ) { $user = new MeprUser( $txn->user_id ); if ( $user->address_is_set() ) { $addr = $user->full_address( false ); $args[‘subscription’][‘billTo’][‘address’] = $addr[‘mepr-address-one’] . ( isset($addr[‘mepr-address-two’] ) ? ‘ ‘ . $addr[‘mepr-address-two’] : ” ); $args[‘subscription’][‘billTo’][‘city’] =…Continue reading